diff --git a/packages/builder/src/stores/portal/licensing.js b/packages/builder/src/stores/portal/licensing.js index ded77894f9..e94e7d2e21 100644 --- a/packages/builder/src/stores/portal/licensing.js +++ b/packages/builder/src/stores/portal/licensing.js @@ -76,7 +76,16 @@ export const createLicensingStore = () => { await actions.setQuotaUsage() }, setNavigation: () => { - const upgradeUrl = `${get(admin).accountPortalUrl}/portal/upgrade` + //"/builder/portal/account/upgrade" + const adminStore = get(admin) + const authStore = get(auth) + + //Add cloud check here too??? + + const upgradeUrl = authStore?.user?.accountPortalAccess + ? `${adminStore.accountPortalUrl}/portal/upgrade` + : "/builder/portal/account/upgrade" + const goToUpgradePage = () => { window.location.href = upgradeUrl }