From f14d83cee1af61bad1904a06afbc72eee721f6ec Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 15 Aug 2014 10:41:34 -0400 Subject: [PATCH] redir to home if no wallets at #open --- js/controllers/open.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/controllers/open.js b/js/controllers/open.js index 8f126dcb7..3dbcc2a50 100644 --- a/js/controllers/open.js +++ b/js/controllers/open.js @@ -15,6 +15,10 @@ angular.module('copayApp.controllers').controller('OpenController', function($sc $scope.openPassword = ''; $scope.isMobile = !!window.cordova; + if (!$scope.wallets.length){ + $location.path('/'); + } + $scope.open = function(form) { if (form && form.$invalid) { notification.error('Error', 'Please enter the required fields');