diff --git a/js/services/controllerUtils.js b/js/services/controllerUtils.js index 928df4f43..5200b4e1c 100644 --- a/js/services/controllerUtils.js +++ b/js/services/controllerUtils.js @@ -55,10 +55,13 @@ angular.module('copayApp.services') }); w.on('ready', function(myPeerID) { $rootScope.wallet = w; - if ($rootScope.pendingPayment) { - $location.path('send'); - } else { - $location.path('receive'); + if ($rootScope.initialConnection) { + $rootScope.initialConnection = false; + if ($rootScope.pendingPayment) { + $location.path('send'); + } else { + $location.path('receive'); + } } }); @@ -139,6 +142,7 @@ angular.module('copayApp.services') uriHandler.register(); $rootScope.unitName = config.unitName; $rootScope.txAlertCount = 0; + $rootScope.initialConnection = true; $rootScope.reconnecting = false; $rootScope.isCollapsed = true; $rootScope.$watch('txAlertCount', function(txAlertCount) {