Skip to content

Commit

Permalink
fix logged in issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zlayine committed Aug 18, 2023
1 parent defea59 commit 8109296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
},
Expand Down

0 comments on commit 8109296

Please sign in to comment.