Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoMorenoSirius committed May 13, 2024
1 parent f6b7d99 commit 8ff32e0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apps/web/app/components/confirmation-code-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ export const ConfirmationCodeInput = () => {
prevValue[index] = value || null
return [...prevValue]
})
if (value) {
if (index < 5) setFocusedInputIndex(index + 1)
else {
// submit code if all inputs are filled
}
if (index < 5) {
value && setFocusedInputIndex(index + 1)
} else {
// submit code if all inputs are filled
}
}

Expand Down

0 comments on commit 8ff32e0

Please sign in to comment.