wallet update events

This commit is contained in:
Fran Jurmanović
2021-06-04 23:57:51 +02:00
parent de13f2acae
commit ac59c1d261
8 changed files with 52 additions and 35 deletions

View File

@@ -45,11 +45,10 @@ class WalletCreateElement extends BasePageElement {
const response = await this.walletService.post(this.values);
if (response?.id) {
this.appMain.triggerWalletUpdate();
this.routerService.goTo("/wallet/:walletId", {
walletId: response.id,
});
const { token } = this.authStore;
this.authStore.token = token;
}
} catch (err) {
this.errorMessage = "Unable to create wallet!";