Update: Utilise txFormatService for payment received overlay
This commit is contained in:
parent
d7a2a61608
commit
71bdd845da
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('tabReceiveController', function($rootScope, $scope, $timeout, $log, $ionicModal, $state, $ionicHistory, $ionicPopover, storageService, platformInfo, walletService, profileService, configService, lodash, gettextCatalog, popupService, bwcError, bitcoinCashJsService, $ionicNavBarDelegate) {
|
angular.module('copayApp.controllers').controller('tabReceiveController', function($rootScope, $scope, $timeout, $log, $ionicModal, $state, $ionicHistory, $ionicPopover, storageService, platformInfo, walletService, profileService, configService, lodash, gettextCatalog, popupService, bwcError, bitcoinCashJsService, $ionicNavBarDelegate, txFormatService) {
|
||||||
|
|
||||||
var listeners = [];
|
var listeners = [];
|
||||||
$scope.bchAddressType = { type: 'cashaddr' };
|
$scope.bchAddressType = { type: 'cashaddr' };
|
||||||
|
|
@ -122,7 +122,7 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
||||||
var watchAddress = $scope.wallet.coin == 'bch' ? $scope.addrBchLegacy : $scope.addr;
|
var watchAddress = $scope.wallet.coin == 'bch' ? $scope.addrBchLegacy : $scope.addr;
|
||||||
for (var i = 0; i < data.x.out.length; i++) {
|
for (var i = 0; i < data.x.out.length; i++) {
|
||||||
if (data.x.out[i].addr == watchAddress) {
|
if (data.x.out[i].addr == watchAddress) {
|
||||||
$scope.paymentReceivedAmount = (data.x.out[i].value / 100000000).toFixed(8);
|
$scope.paymentReceivedAmount = txFormatService.formatAmount(data.x.out[i].value, 'full');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$scope.paymentReceivedCoin = $scope.wallet.coin;
|
$scope.paymentReceivedCoin = $scope.wallet.coin;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue