mirror of https://github.com/BTCPrivate/copay.git
redir to home if no wallets at #open
This commit is contained in:
parent
5753f406e0
commit
f14d83cee1
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue