Handle null wallet.
This commit is contained in:
parent
82c0746ff8
commit
8d404f1908
1 changed files with 5 additions and 0 deletions
|
|
@ -66,6 +66,11 @@
|
|||
|
||||
function formatBalance() {
|
||||
var displayAsFiat = $scope.displayAsFiat === 'true';
|
||||
if (!$scope.wallet) {
|
||||
setDisplay('', '');
|
||||
return;
|
||||
}
|
||||
|
||||
var wallet = null;
|
||||
try {
|
||||
wallet = JSON.parse($scope.wallet);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue