diff --git a/resources/js/store/index.ts b/resources/js/store/index.ts index 627641e..2a98761 100644 --- a/resources/js/store/index.ts +++ b/resources/js/store/index.ts @@ -130,7 +130,6 @@ export const useAppStore = defineStore('app', { if (this.hasFuelTanksPackage) this.addFuelTanksNavigation(); if (this.hasMarketplacePackage) this.addMarketplaceNavigation(); - this.loggedIn = true; if (this.isMultiTenant && this.loggedIn) await this.getUser(); return await this.fetchCollectionIds(); @@ -144,6 +143,7 @@ export const useAppStore = defineStore('app', { async setupAccount({ url, authorization_token }: { url: URL; authorization_token: string }) { this.url = url; this.authorization_token = authorization_token; + this.loggedIn = true; return await this.init(); },