From 92800f0b967f6b427dcb9c667454e13101a8fe38 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Thu, 22 Jan 2026 14:50:58 -0700 Subject: [PATCH] Fix this --- src/app/verify-code/page.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/verify-code/page.tsx b/src/app/verify-code/page.tsx index 44fff9f..7d7b44e 100644 --- a/src/app/verify-code/page.tsx +++ b/src/app/verify-code/page.tsx @@ -8,6 +8,7 @@ export default function CaptchaCodePage () { const [token, setToken] = useState(null) const [code, setCode] = useState(null) const [result, setResult] = useState(-1) + const [resultMsg, setResultMsg] = useState(null) const [showCopied, setShowCopied] = useState(false) return ( @@ -28,7 +29,11 @@ export default function CaptchaCodePage () { setCode(result.data.data) setResult(2) } else { - setResult(3) + if (result.data.message) { + setResultMsg(result.data.message) + } else { + setResult(3) + } } } catch { setResult(3) @@ -44,7 +49,8 @@ export default function CaptchaCodePage () { ? 'Unable to verify captcha, please reload page.' : result == 2 ? 'Here is your verification code. It will in 10 minutes or when used.' - : 'Failed to get verification code. Please try again later.'} + : resultMsg ?? + 'Failed to get verification code. Please try again later.'}