Merge pull request #8016 from gabrielbazan7/fix/updateall1

[V4] FIX: update all
This commit is contained in:
Gustavo Maximiliano Cortez 2018-02-09 17:11:29 -03:00 committed by GitHub
commit 59ed285e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -99,13 +99,13 @@ export class HomePage {
this.isWindowsPhoneApp = this.platformProvider.isWP;
this.showReorderBtc = false;
this.showReorderBch = false;
this.setWallets();
}
ionViewWillEnter() {
this.config = this.configProvider.get();
this.wallets = this.profileProvider.getWallets();
this.walletsBtc = this.profileProvider.getWallets({ coin: 'btc' });
this.walletsBch = this.profileProvider.getWallets({ coin: 'bch' });
this.setWallets();
this.recentTransactionsEnabled = this.config.recentTransactions.enabled;
if (this.recentTransactionsEnabled) this.getNotifications();
@ -163,6 +163,12 @@ export class HomePage {
this.updateAllWallets();
}
private setWallets(): void {
this.wallets = this.profileProvider.getWallets();
this.walletsBtc = this.profileProvider.getWallets({ coin: 'btc' });
this.walletsBch = this.profileProvider.getWallets({ coin: 'bch' });
}
public checkHomeTip(): void {
this.persistenceProvider.getHomeTipAccepted().then((value: string) => {
this.homeTip = (value == 'accepted') ? false : true;