Update: Rewrites balance checking with a promise-based function to avoid asynchronous issues
This commit is contained in:
parent
f2ad6abe75
commit
92e593ab12
2 changed files with 41 additions and 27 deletions
|
|
@ -640,15 +640,15 @@ angular.module('copayApp.services')
|
|||
if (value == null) {
|
||||
resolve(false);
|
||||
} else {
|
||||
resolve(true);
|
||||
resolve(JSON.parse(value).initialized);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
root.activateDisplayBitcoinCoreFlag = function() {
|
||||
root.activateDisplayBitcoinCoreFlag = function(value) {
|
||||
var flag = {
|
||||
initialized: true
|
||||
initialized: value
|
||||
};
|
||||
storage.set('displayBitcoinCoreFlag', flag, function() { });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue