mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-05 02:58:36 -06:00
fix: handle incorrect 2FA OTP error (#3935)
Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user