mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-01 03:05:55 +00:00
fix: update error messages and statuses in VerifyRegistrationOTP function for clarity
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m45s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m45s
This commit is contained in:
@ -43,7 +43,7 @@ export default function VerifyRegistrationOTPForm({
|
||||
hidden
|
||||
/>
|
||||
<Input
|
||||
disabled={isPending}
|
||||
disabled={isPending || state.status === "verify_error"}
|
||||
id="otp-number"
|
||||
name="otp"
|
||||
maxLength={6}
|
||||
@ -58,7 +58,11 @@ export default function VerifyRegistrationOTPForm({
|
||||
<p className="text-red-500 text-sm">{state.message}</p>
|
||||
)}
|
||||
</div>
|
||||
<Button className="w-full" disabled={isPending} type="submit">
|
||||
<Button
|
||||
className="w-full"
|
||||
disabled={isPending || state.status === "verify_error"}
|
||||
type="submit"
|
||||
>
|
||||
{isPending ? (
|
||||
<Loader2 className="animate-spin" />
|
||||
) : (
|
||||
|
Reference in New Issue
Block a user