Skip to content

Commit

Permalink
Removed unneeded console outputs from recovery code modal testing
Browse files Browse the repository at this point in the history
  • Loading branch information
csalas-yubico committed May 9, 2022
1 parent fdf2112 commit a482b74
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const RecoveryCodes = function ({ credentials }) {
};

const handleIgnore = () => {
console.warn("This method did get called");
localStorage.setItem("recoveryCodesModal", "true");
setShowCodes(false);
};
Expand All @@ -70,19 +69,12 @@ const RecoveryCodes = function ({ credentials }) {
*/
useEffect(() => {
if ((!recoveryCodesViewed || allRecoveryCodesUsed) && !ignoreModal) {
console.warn("we in here: ", {
recoveryCodesViewed,
allRecoveryCodesUsed,
ignoreModal,
});

handleShow();
}
}, [recoveryCodesViewed, allRecoveryCodesUsed]);

useEffect(() => {
if (localStorage.getItem("recoveryCodesModal") === "true") {
console.warn("ignore modal is true");
setIgnoreMoral(true);
}
}, []);
Expand Down

0 comments on commit a482b74

Please sign in to comment.