fix: add error message display for general errors in OTP verification form
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 5m7s

This commit is contained in:
i701 2025-04-17 23:47:59 +05:00
parent 2cb2059f9e
commit 25404b66f7
Signed by: i701
GPG Key ID: 54A0DA1E26D8E587

View File

@ -52,6 +52,9 @@ export default function VerifyRegistrationOTPForm({
className="bg-white text-black" className="bg-white text-black"
/> />
{state?.status === "error" && ( {state?.status === "error" && (
<p className="text-yellow-500 text-sm">{state.message}</p>
)}
{state.status === "verify_error" && (
<p className="text-red-500 text-sm">{state.message}</p> <p className="text-red-500 text-sm">{state.message}</p>
)} )}
</div> </div>