fix: handle incorrect 2FA OTP error (#3935)

Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
This commit is contained in:
Parth Seth
2024-10-24 05:05:23 +05:30
committed by GitHub
parent 352e905529
commit 90480317af

View File

@@ -163,6 +163,8 @@ const EnterCode = ({ setCurrentStep, setOpen, refreshData }: TEnableCodeProps) =
// refresh data to update the UI
refreshData();
}else{
toast.error("The 2FA OTP is incorrect. Please try again.");
}
} catch (err) {
toast.error(err.message);