From 501cf28b9a60801f51fa6efadd7c55e85afafe2a Mon Sep 17 00:00:00 2001 From: Arda Samadi Date: Thu, 18 Jun 2026 17:53:01 +0330 Subject: [PATCH] fix(auth): 6-digit OTP in LoginRequiredDialog The login-required popup still rendered a 4-slot OTP (maxLength=4, gated on length===4) while the main login page already used 6. Users who triggered login via the dialog saw the old 4-digit code. Match login.tsx: 6 slots, length===6, same slot sizing. Co-Authored-By: Claude Opus 4.8 --- app/components/LoginRequiredDialog.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app/components/LoginRequiredDialog.tsx b/app/components/LoginRequiredDialog.tsx index 376bb32..d44a717 100644 --- a/app/components/LoginRequiredDialog.tsx +++ b/app/components/LoginRequiredDialog.tsx @@ -166,7 +166,7 @@ export function LoginRequiredDialog({
{ const convertedValue = convertPersianToEnglish(finalValue); setOtpValue(convertedValue); @@ -177,17 +177,19 @@ export function LoginRequiredDialog({ setOtpValue(convertedValue); }} > - - - - - + + + + + + +