term of use page fixes
This commit is contained in:
parent
01c384f5d3
commit
17003bc1c1
3 changed files with 17 additions and 14 deletions
|
|
@ -135,9 +135,14 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
self.openWallet();
|
||||
});
|
||||
}
|
||||
storageService.getProfile(function(err, profile) {
|
||||
self.agreeDisclaimer = profile.agreeDisclaimer;
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
self.agreeDisclaimer = function() {
|
||||
storageService.getProfile(function(err, profile) {
|
||||
if (profile && profile.agreeDisclaimer)
|
||||
return profile.agreeDisclaimer;
|
||||
return null;
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -1328,8 +1333,8 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
$rootScope.$on('Local/NewFocusedWallet', function() {
|
||||
self.setFocusedWallet();
|
||||
self.updateTxHistory();
|
||||
storageService.getProfile(function(err, val) {
|
||||
if (val.agreeDisclaimer) go.walletHome();
|
||||
storageService.getProfile(function(err, profile) {
|
||||
if (profile && profile.agreeDisclaimer) go.walletHome();
|
||||
storageService.getCleanAndScanAddresses(function(err, walletId) {
|
||||
if (walletId && profileService.walletClients[walletId]) {
|
||||
$log.debug('Clear last address cache and Scan ', walletId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue