Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed Jul 5, 2024
1 parent 1d9ad36 commit 88a056c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/(pages)/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) => (
<SelectItem key={roles.value}>{roles.label}</SelectItem>
Expand Down

0 comments on commit 88a056c

Please sign in to comment.