diff --git a/public/views/backup.html b/public/views/backup.html
index 396023599..e86675fff 100644
--- a/public/views/backup.html
+++ b/public/views/backup.html
@@ -2,20 +2,9 @@
Backup Flow
-<<<<<<< 5b14c8aca37bc7b15324fdbbed162dea8cc2d3af
-
-
-
-
-
-
-=======
->>>>>>> delete focused wallet
diff --git a/src/js/controllers/preferencesHistory.js b/src/js/controllers/preferencesHistory.js
index ddbb71e61..219b5779d 100644
--- a/src/js/controllers/preferencesHistory.js
+++ b/src/js/controllers/preferencesHistory.js
@@ -126,7 +126,7 @@ angular.module('copayApp.controllers').controller('preferencesHistory',
$scope.$emit('Local/ClearHistory');
$timeout(function() {
- go.choosedWallet(c.walletId);
+ go.WalletHome();
}, 100);
});
};
diff --git a/src/js/services/go.js b/src/js/services/go.js
index 529ee1330..082d3c207 100644
--- a/src/js/services/go.js
+++ b/src/js/services/go.js
@@ -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');
}