Auto fill OTP in modal
This commit is contained in:
@@ -363,7 +363,7 @@ const AnalysisResultPage = () => {
|
||||
setTimeout(() => setToast({ show: false, message: '' }), 4000);
|
||||
} else {
|
||||
setShowOtpModal(true);
|
||||
setOtp(new Array(6).fill(''));
|
||||
setOtp(user.otp ? user.otp.split('') : new Array(6).fill(''));
|
||||
}
|
||||
} catch (err) {
|
||||
setFormErrors({ phone: err.message || 'Failed to send message. Please try again.' });
|
||||
|
||||
Reference in New Issue
Block a user