From 782dd0fb516af71dc63eb21419b2a973096e6d29 Mon Sep 17 00:00:00 2001 From: gofnnp Date: Tue, 16 Apr 2024 22:49:07 +0400 Subject: [PATCH] fix always reload payment page --- src/components/App/index.tsx | 4 ++-- src/routes.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx index 74055fd..8b23436 100755 --- a/src/components/App/index.tsx +++ b/src/components/App/index.tsx @@ -989,8 +989,8 @@ function ShortPathOutlet(props: IShortPathOutletProps): JSX.Element { error: "Something went wrong", }; } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [token, user?.email]); const { data, isPending } = useApiCall(loadData); diff --git a/src/routes.ts b/src/routes.ts index de38b8e..9e57abc 100755 --- a/src/routes.ts +++ b/src/routes.ts @@ -6,7 +6,7 @@ const host = ""; export const apiHost = "https://api-web.aura.wit.life"; const dApiHost = isProduction ? "https://api.aura.witapps.us" - : "https://dev.api.witapps.us"; + : "https://dev.api.aura.witapps.us"; // const dApiHost = "https://d.api.witapps.us"; const siteHost = "https://aura.wit.life"; const prefix = "api/v1";