settings: fix angular error on logout
This commit is contained in:
parent
03e4b49bd0
commit
2f545239d5
1 changed files with 2 additions and 0 deletions
|
|
@ -49,6 +49,8 @@ angular.module('copayApp.filters', [])
|
|||
var numberFilter = filter('number');
|
||||
var formats = locale.NUMBER_FORMATS;
|
||||
return function(amount, n) {
|
||||
if (!$rootScope.wallet) return amount;
|
||||
|
||||
var fractionSize = (typeof(n) !== 'undefined') ?
|
||||
n : $rootScope.wallet.settings.unitToSatoshi.toString().length - 1;
|
||||
var value = numberFilter(amount, fractionSize);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue