last update
This commit is contained in:
@@ -19,9 +19,9 @@ function LogInPage({ setIsSendMsg, num, setNum, matchedCity }) {
|
||||
setError(checkedNum);
|
||||
const digits = formatted.replace(/\D/g, "");
|
||||
setNum(formatted);
|
||||
if (digits.length === 9) {
|
||||
handleReq();
|
||||
}
|
||||
// if (digits.length === 9) {
|
||||
// handleReq();
|
||||
// }
|
||||
};
|
||||
const handleReq = () => {
|
||||
setLoading(true);
|
||||
@@ -30,7 +30,7 @@ function LogInPage({ setIsSendMsg, num, setNum, matchedCity }) {
|
||||
.then((response) => {
|
||||
setLoading(false);
|
||||
if (response) {
|
||||
setNum("");
|
||||
// setNum("");
|
||||
setIsSendMsg(true);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user