diff --git a/components/AppsComponent/CheckoutData/page.jsx b/components/AppsComponent/CheckoutData/page.jsx index 6ef132f..16b77e0 100644 --- a/components/AppsComponent/CheckoutData/page.jsx +++ b/components/AppsComponent/CheckoutData/page.jsx @@ -95,7 +95,7 @@ const CheckoutData = () => { } ); - router.push(data?.paymentUrl); + // router.push(data?.paymentUrl); } catch ({ error, status }) { toast.error(`${error?.response?.data?.message}`, { position: "bottom-right", diff --git a/plugins/Chapar/index.js b/plugins/Chapar/index.js index cb7291e..a5f4a13 100644 --- a/plugins/Chapar/index.js +++ b/plugins/Chapar/index.js @@ -31,10 +31,10 @@ Chapar.interceptors.response.use( // Do something with response error // ; - if (error.response.status === 401) { - localStorage.removeItem("token"); - window.location.href = "/login"; - } + // if (error.response.status === 401) { + // localStorage.removeItem("token"); + // window.location.href = "/login"; + // } return Promise.reject({ error, status: error?.response?.status }); }