mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 14:26:25 +00:00
fixing the pro trial bug
This commit is contained in:
@@ -80,7 +80,7 @@ type TAddProjectFormData = yup.InferType<typeof formSchema>;
|
|||||||
export const AppLayout = ({ children }: LayoutProps) => {
|
export const AppLayout = ({ children }: LayoutProps) => {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { createNotification } = useNotificationContext();
|
const { createNotification } = useNotificationContext();
|
||||||
const { mutateTrialAsync } = useGetOrgTrialUrl();
|
const { mutateAsync } = useGetOrgTrialUrl();
|
||||||
|
|
||||||
// eslint-disable-next-line prefer-const
|
// eslint-disable-next-line prefer-const
|
||||||
const { workspaces, currentWorkspace } = useWorkspace();
|
const { workspaces, currentWorkspace } = useWorkspace();
|
||||||
@@ -571,7 +571,7 @@ export const AppLayout = ({ children }: LayoutProps) => {
|
|||||||
if (!subscription || !currentOrg) return;
|
if (!subscription || !currentOrg) return;
|
||||||
|
|
||||||
// direct user to start pro trial
|
// direct user to start pro trial
|
||||||
const url = await mutateTrialAsync({
|
const url = await mutateAsync({
|
||||||
orgId: currentOrg._id,
|
orgId: currentOrg._id,
|
||||||
success_url: window.location.href
|
success_url: window.location.href
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user