diff --git a/js/services/controllerUtils.js b/js/services/controllerUtils.js index c04481eea..b371bd332 100644 --- a/js/services/controllerUtils.js +++ b/js/services/controllerUtils.js @@ -64,7 +64,7 @@ angular.module('copayApp.services') root.isFocusedWallet = function(wid) { - return wid === $rootScope.wallet.getId(); + return $rootScope.wallet && wid === $rootScope.wallet.getId(); };