Handle first launch.

This commit is contained in:
Brendon Duncan 2018-07-02 17:57:51 +12:00
commit 867063fc8f

View file

@ -204,10 +204,16 @@ angular.module('copayApp.services')
storage.get('profile', function(getErr, getStr) { storage.get('profile', function(getErr, getStr) {
if (getErr) { if (getErr) {
cb(getErr, null); cb(getErr, null);
} else { return;
profile = Profile.fromString(getStr);
cb(null, profile);
} }
if (!getStr) {
cb(null, null);
return;
}
profile = Profile.fromString(getStr);
cb(null, profile);
}); });
}; };