Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocustodio committed Aug 12, 2023
1 parent 3b988ae commit d826435
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/js/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,20 +136,25 @@ export const useAppStore = defineStore('app', {
if (this.hasFuelTanksPackage) this.addFuelTanksNavigation();
if (this.hasMarketplacePackage) this.addMarketplaceNavigation();

console.log('before fetch');
await this.fetchCollectionIds();
console.log('after fetch');

return true;
} catch (error: any) {
console.log('snack error');
snackbar.error({ title: error });
}

console.log('before false');
return false;
},
async setupAccount({ url, authorization_token }: { url: URL; authorization_token: string }) {
this.url = url;
this.authorization_token = authorization_token;
this.config.authorization_token = authorization_token;
this.loggedIn = true;

return await this.init();
},
setConfig() {
Expand Down

0 comments on commit d826435

Please sign in to comment.