Compare commits

..

No commits in common. "a15813b8fdc82908656bf27eff5765988a5e629c" and "470edf2f7af54b3424520f42fec88e5c1f8201f0" have entirely different histories.

1 changed files with 3 additions and 3 deletions

View File

@ -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("");
};