diff --git a/src/lib/components/navbar.svelte b/src/lib/components/navbar.svelte index 7dae8bb066..d1b51c71e3 100644 --- a/src/lib/components/navbar.svelte +++ b/src/lib/components/navbar.svelte @@ -139,6 +139,7 @@ } beforeNavigate(() => (showAccountMenu = false)); + onMount(() => { if (resolvedProfile.showExtendedAccountsMenu) { fetchImagineCredits(currentOrg); @@ -300,7 +301,7 @@ direction="row" justifyContent="space-between" alignItems="center" - >{credits} Credits left + >{credits} Credit(s) left { const organization = get(organizationStore).$id; - goto( + await goto( resolve('/(console)/organization-[organization]/change-plan', { organization: organization }) diff --git a/src/routes/(console)/organization-[organization]/change-plan/+page.svelte b/src/routes/(console)/organization-[organization]/change-plan/+page.svelte index a3c25857fa..a9f1b71e74 100644 --- a/src/routes/(console)/organization-[organization]/change-plan/+page.svelte +++ b/src/routes/(console)/organization-[organization]/change-plan/+page.svelte @@ -1,6 +1,6 @@