Compare commits
No commits in common. "a15813b8fdc82908656bf27eff5765988a5e629c" and "470edf2f7af54b3424520f42fec88e5c1f8201f0" have entirely different histories.
a15813b8fd
...
470edf2f7a
|
|
@ -70,12 +70,12 @@ export default function SignUpForm() {
|
|||
};
|
||||
|
||||
const handleCountrySelect = (c: CountryCode) => {
|
||||
if (c.country !== selectedCountry.country) {
|
||||
setPhone("");
|
||||
}
|
||||
setSelectedCountry(c);
|
||||
setShowCountryModal(false);
|
||||
setCountrySearch("");
|
||||
if (phone.length > c.maxLength) {
|
||||
setPhone(phone.slice(0, c.maxLength));
|
||||
}
|
||||
if (phoneError) setPhoneError("");
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue