From 865a7d6b32b08eab38a4812a6c0fd36730a017d8 Mon Sep 17 00:00:00 2001 From: Ambuj Raj Date: Fri, 3 May 2024 23:59:57 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fixed=20send=20button=20disabled?= =?UTF-8?q?=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/app/(pages)/page.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/app/(pages)/page.tsx b/ui/src/app/(pages)/page.tsx index 67ffd41..c6cd087 100644 --- a/ui/src/app/(pages)/page.tsx +++ b/ui/src/app/(pages)/page.tsx @@ -61,6 +61,7 @@ export default function Home() { const [progress, setProgress] = useState(0) const [uploading, setUploading] = useState(false) const [uploaded, setUploaded] = useState(false) + const [sendDisabled, setSendDisabled] = useState(true) const [postProcessing, setPostProcessing] = useState(false) const [willShareEmail, setWillShareEmail] = useState(false) const [shareURL, setShareURL] = useState('') @@ -88,7 +89,10 @@ export default function Home() { setUserEmail(userResponse.email) setUserName(userResponse.name) } + }).finally(() => { + setSendDisabled(false) }) + } }, [statusLoaded, router]) @@ -503,7 +507,7 @@ export default function Home() {