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) {
if (getErr) {
cb(getErr, null);
} else {
profile = Profile.fromString(getStr);
cb(null, profile);
return;
}
if (!getStr) {
cb(null, null);
return;
}
profile = Profile.fromString(getStr);
cb(null, profile);
});
};