Skip to content

Commit bac0f8d

Browse files
committed
Balance incorrecte after sending TX - fix #248
1 parent 2ab2595 commit bac0f8d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

www/js/controllers/wallet-controllers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ function WalletController($scope, $rootScope, $q, $ionicPopup, $timeout, $state,
8686

8787
// Update view
8888
$scope.updateView = function() {
89+
$scope.$broadcast('$$rebind::' + 'balance'); // force rebind balance
90+
8991
$scope.onSettingsChanged();
9092
// Set Motion
9193
$timeout(function() {

www/templates/wallet/view_wallet.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</button>
1616
</ion-nav-buttons>
1717

18-
<ion-content scroll="true" bind-notifier="{ rebind:settings.useRelative }">
18+
<ion-content scroll="true" bind-notifier="{ rebind:settings.useRelative, balance:walletData.balance }">
1919
<div class="positive-900-bg hero"
2020
id="wallet-header"
2121
ng-class="{'hero-qrcode-active': toggleQRCode}">

0 commit comments

Comments
 (0)