Skip to content

Commit b9a763f

Browse files
committed
defaultChecked to false
1 parent 8ff53e3 commit b9a763f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/sms-login.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
import "./styles/custom.css";
32

43
const GOOEY_LOGO =
@@ -18,12 +17,12 @@ const App = () => {
1817
alertBox.innerText = "❌ Please enter your phone number";
1918
} else if (checkbox.checked && phone.value) {
2019
alertBox.innerText = "✅ Thanks for joining!";
20+
phone.value = "";
2121
}
2222
setTimeout(() => {
2323
alertBox.innerText = "";
2424
}, 3000);
2525
}
26-
phone.value = "";
2726
};
2827

2928
return (
@@ -107,7 +106,6 @@ const App = () => {
107106
>
108107
<input
109108
type="checkbox"
110-
defaultChecked={true}
111109
id="check-box-terms"
112110
name="isAgreed"
113111
/>

0 commit comments

Comments
 (0)