From 4e926746cfd36ca91d75e849a773776ec80cb1ba Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Wed, 12 Jul 2023 15:46:42 -0700 Subject: [PATCH] fixing the pro trial bug --- frontend/src/layouts/AppLayout/AppLayout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx index 4a9be6d6b6..fa2cec2652 100644 --- a/frontend/src/layouts/AppLayout/AppLayout.tsx +++ b/frontend/src/layouts/AppLayout/AppLayout.tsx @@ -80,7 +80,7 @@ type TAddProjectFormData = yup.InferType; export const AppLayout = ({ children }: LayoutProps) => { const router = useRouter(); const { createNotification } = useNotificationContext(); - const { mutateTrialAsync } = useGetOrgTrialUrl(); + const { mutateAsync } = useGetOrgTrialUrl(); // eslint-disable-next-line prefer-const const { workspaces, currentWorkspace } = useWorkspace(); @@ -571,7 +571,7 @@ export const AppLayout = ({ children }: LayoutProps) => { if (!subscription || !currentOrg) return; // direct user to start pro trial - const url = await mutateTrialAsync({ + const url = await mutateAsync({ orgId: currentOrg._id, success_url: window.location.href });