Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(home-balance): Refresh balance when switching on from settings. F…
…ix isoCode
  • Loading branch information
cmgustavo committed Jun 12, 2020
1 parent c692812 commit 3d6dcf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pages/settings/settings.ts
Expand Up @@ -396,6 +396,7 @@ export class SettingsPage {
totalBalance: { show: this.showTotalBalance }
};
this.configProvider.set(opts);
if (this.showTotalBalance) this.events.publish('Local/FetchWallets');
}

public reorder(): void {
Expand Down
2 changes: 1 addition & 1 deletion src/providers/wallet/wallet.ts
Expand Up @@ -527,7 +527,7 @@ export class WalletProvider {
parseFloat(totalBalanceAlternative.replace(/,/g, ''));

return {
isoCode,
totalBalanceAlternativeIsoCode: isoCode,
totalBalanceAlternative,
averagePrice
};
Expand Down

0 comments on commit 3d6dcf2

Please sign in to comment.