From 5bb3b87bb4aa6e7194d93e75c73a7edab6c598dd Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 27 Jun 2017 17:11:15 -0400 Subject: [PATCH] 0 check --- src/popup/app/accounts/accountsLoginTwoFactorController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/popup/app/accounts/accountsLoginTwoFactorController.js b/src/popup/app/accounts/accountsLoginTwoFactorController.js index d958d1bf..54b8f90e 100644 --- a/src/popup/app/accounts/accountsLoginTwoFactorController.js +++ b/src/popup/app/accounts/accountsLoginTwoFactorController.js @@ -29,7 +29,8 @@ return; } - $scope.providerType = $stateParams.provider ? $stateParams.provider : getDefaultProvider(providers); + $scope.providerType = $stateParams.provider || $stateParams.provider === 0 ? $stateParams.provider : + getDefaultProvider(providers); $scope.twoFactorEmail = null; $scope.token = null; $scope.constantsProvider = constants.twoFactorProvider;