From 4de2bbb8c2614cd966b5eb98d0d14b43b53db81c Mon Sep 17 00:00:00 2001 From: ayush Date: Fri, 25 Oct 2024 09:04:50 +0530 Subject: [PATCH] chore: coming soon fix --- src/app/register/page.jsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/register/page.jsx b/src/app/register/page.jsx index 575d9450..3bf89157 100644 --- a/src/app/register/page.jsx +++ b/src/app/register/page.jsx @@ -52,16 +52,16 @@ function Page() { const { name, value, type, checked } = event.target; if (type === 'file') { try { - const imageUrl = await handleLoadingAndToast( - uploadToCloudinary(event.target.files[0]), - 'Uploading Image...', - `${name.toUpperCase()} uploaded successfully`, - `${name.toUpperCase()} upload failed!`, - setLoading, - ); + // const imageUrl = await handleLoadingAndToast( + // uploadToCloudinary(event.target.files[0]), + // 'Uploading Image...', + // `${name.toUpperCase()} uploaded successfully`, + // `${name.toUpperCase()} upload failed!`, + // setLoading, + // ); setUserDetails((prev) => ({ ...prev, - [name]: imageUrl, + [name]: 'imageUrl', })); setErrors((prev) => ({ ...prev, [name]: '' })); } catch (error) {