From 8109296fd13e7b1c56c1ab42531b302b18524967 Mon Sep 17 00:00:00 2001 From: zlayine Date: Fri, 18 Aug 2023 09:26:57 +0300 Subject: [PATCH] fix logged in issue --- resources/js/store/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); },