fix backup file

This commit is contained in:
Gabriel Bazán 2016-08-19 13:14:23 -03:00
commit 572220689a
3 changed files with 6 additions and 15 deletions

View file

@ -126,7 +126,7 @@ angular.module('copayApp.controllers').controller('preferencesHistory',
$scope.$emit('Local/ClearHistory');
$timeout(function() {
go.choosedWallet(c.walletId);
go.WalletHome();
}, 100);
});
};

View file

@ -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');
}