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