Skip to content

Commit

Permalink
fix(frontend):handle invalid security answer
Browse files Browse the repository at this point in the history
  • Loading branch information
Dami-18 committed Jul 14, 2024
1 parent 41e190b commit 81f0292
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/components/SecurityQueForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ const SecurityQueForm: React.FC = () => {
if (res.status == 401)
if (resData.message == "Invalid Password" || resData.message == "Session isn't alive. PLease login again.")
return setAuth((prev) => ({ ...prev, currentStep: 0 }));
else if(resData.message == "Invalid Security Question Answer")
return

if (res.status == 500) throw new Error(resData.message);

Expand Down

0 comments on commit 81f0292

Please sign in to comment.