Handle null wallet.

This commit is contained in:
Brendon Duncan 2018-08-10 16:19:24 +12:00
commit 8d404f1908

View file

@ -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);