fix storage

This commit is contained in:
Matias Alejo Garcia 2017-02-07 16:16:21 -05:00
commit 05f10e1135
No known key found for this signature in database
GPG key ID: 02470DB551277AB3

View file

@ -447,6 +447,9 @@ angular.module('copayApp.services')
storage.get('bitpayAccounts-v2-' + network, function(err, allAccountsStr) {
if (err) return cb(err);
if (!allAccountsStr)
return cb(null, {});
var allAccounts = {};
try {
allAccounts = JSON.parse(allAccountsStr);