Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Set the key to something.
Browse files Browse the repository at this point in the history
- This was the cause of the error. null could not be set which threw the error.
- Set this to 0, or the beginning of computer time.
  • Loading branch information
jessgusclark committed May 11, 2021
1 parent 08b5b3e commit 28258f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/passcode/wrongPasscodeUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const WRONG_ATTEMPTS_STEPS = {

export const clearWrongAttempts = () => {
try {
storage.setLastPasscodeAttempt();
storage.setLastPasscodeAttempt(0);
storage.setWrongPasscodeCounter(0);
} catch (error) {
console.error('Error cleaning wrong attempts', error);
Expand Down

0 comments on commit 28258f1

Please sign in to comment.