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