From 88a056c497c9018b731202f80b4aee65cdfdf296 Mon Sep 17 00:00:00 2001 From: Anand Suthar Date: Fri, 5 Jul 2024 23:53:06 +0530 Subject: [PATCH] minor --- app/(pages)/(auth)/login/page.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/(pages)/(auth)/login/page.tsx b/app/(pages)/(auth)/login/page.tsx index f131f888..7b662fc6 100644 --- a/app/(pages)/(auth)/login/page.tsx +++ b/app/(pages)/(auth)/login/page.tsx @@ -20,8 +20,6 @@ export default function Login() { const [emailError, setEmailError] = useState(null || String); const [password, setPassword] = useState(""); const [passwordError, setPasswordError] = useState(null || String); - const [role, setRole] = useState(null || String); - const [roleTouched, setRoleTouched] = useState(false); const [isVisible, setIsVisible] = useState(false); const [Error, setError] = useState(null || String); const [showOtp, setShowOtp] = useState(false); @@ -237,11 +235,7 @@ export default function Login() { placeholder="Select who you are" className="mx-2 my-2" ref={roleRef} - onClose={() => { - if (roleRef.current?.value === "") { - showToast(roleRef); - } - }} + onClose={() => showToast(roleRef)} > {(roles) => ( {roles.label}