Skip to content

Commit

Permalink
handle otp cooldown
Browse files Browse the repository at this point in the history
  • Loading branch information
Dami-18 committed Jun 24, 2024
1 parent a1fd422 commit 8078583
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ const Form = () => {
});
setOtpRequested(true);
} else {
toast.error("Failed to send OTP. Please try again", {
id: loadingToast,
response.text().then((msg) => {
toast.error(msg, {
id: loadingToast,
});
});
}
})
Expand Down

0 comments on commit 8078583

Please sign in to comment.