This commit is contained in:
Matias Alejo Garcia 2016-08-19 14:01:50 -03:00
commit 7f3364c5d6
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
29 changed files with 182 additions and 199 deletions

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