fix backup file
This commit is contained in:
parent
6e4a1e7ff2
commit
572220689a
3 changed files with 6 additions and 15 deletions
|
|
@ -126,7 +126,7 @@ angular.module('copayApp.controllers').controller('preferencesHistory',
|
|||
$scope.$emit('Local/ClearHistory');
|
||||
|
||||
$timeout(function() {
|
||||
go.choosedWallet(c.walletId);
|
||||
go.WalletHome();
|
||||
}, 100);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -30,10 +30,12 @@ angular.module('copayApp.services').factory('go', function($window, $ionicSideMe
|
|||
};
|
||||
|
||||
root.walletHome = function() {
|
||||
var fc = profileService.focusedClient;
|
||||
if (fc && !fc.isComplete()) {
|
||||
var wallet = profileService.getWallet($stateParams.walletId);
|
||||
if (wallet && !wallet.isComplete()) {
|
||||
$log.debug("Wallet not complete at startup... redirecting");
|
||||
$state.transitionTo('wallet.details', {walletId: fc.credentials.walletId})
|
||||
$state.transitionTo('wallet.details', {
|
||||
walletId: wallet.credentials.walletId
|
||||
})
|
||||
} else {
|
||||
root.path('tabs.home');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue