diff --git a/src/js/controllers/preferencesDelete.js b/src/js/controllers/preferencesDelete.js index e70f83eaf..1cc97f71a 100644 --- a/src/js/controllers/preferencesDelete.js +++ b/src/js/controllers/preferencesDelete.js @@ -1,7 +1,7 @@ 'use strict'; angular.module('copayApp.controllers').controller('preferencesDeleteWalletController', - function($scope, $rootScope, $filter, $timeout, $modal, $log, storageService, notification, profileService, isCordova, go, gettext, gettextCatalog, animationService) { + function($scope, $rootScope, $filter, $timeout, $modal, $log, storageService, notification, profileService, isCordova, go, gettext, gettextCatalog, animationService, applicationService) { this.isCordova = isCordova; this.error = null; @@ -56,7 +56,7 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWalletContro notification.success(gettextCatalog.getString('Success'), gettextCatalog.getString('The wallet "{{walletName}}" was deleted', { walletName: walletName })); - go.walletHome(); + applicationService.restart(); } }); };