Handle first launch.
This commit is contained in:
parent
9224d40a65
commit
867063fc8f
1 changed files with 9 additions and 3 deletions
|
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue