fix storage
This commit is contained in:
parent
2d3da332c4
commit
05f10e1135
1 changed files with 3 additions and 0 deletions
|
|
@ -447,6 +447,9 @@ angular.module('copayApp.services')
|
||||||
storage.get('bitpayAccounts-v2-' + network, function(err, allAccountsStr) {
|
storage.get('bitpayAccounts-v2-' + network, function(err, allAccountsStr) {
|
||||||
if (err) return cb(err);
|
if (err) return cb(err);
|
||||||
|
|
||||||
|
if (!allAccountsStr)
|
||||||
|
return cb(null, {});
|
||||||
|
|
||||||
var allAccounts = {};
|
var allAccounts = {};
|
||||||
try {
|
try {
|
||||||
allAccounts = JSON.parse(allAccountsStr);
|
allAccounts = JSON.parse(allAccountsStr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue