Merge brendon
This commit is contained in:
commit
aae69b65d4
1 changed files with 10 additions and 8 deletions
|
|
@ -203,15 +203,17 @@ angular.module('copayApp.services')
|
|||
root.getProfile = function(cb) {
|
||||
storage.get('profile', function(getErr, getStr) {
|
||||
if (getErr) {
|
||||
return cb(getErr, null);
|
||||
} else {
|
||||
if (!getStr) {
|
||||
return cb(null, null);
|
||||
} else {
|
||||
profile = Profile.fromString(getStr);
|
||||
return cb(null, profile);
|
||||
}
|
||||
cb(getErr, null);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!getStr) {
|
||||
cb(null, null);
|
||||
return;
|
||||
}
|
||||
|
||||
var profile = Profile.fromString(getStr);
|
||||
cb(null, profile);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue