fix: toast in phone number section

This commit is contained in:
Koosha Lahouti
2025-08-20 01:04:17 +03:30
parent 8ed4aab666
commit 59032dd285
2 changed files with 4 additions and 6 deletions

View File

@@ -174,6 +174,10 @@ export function PhoneNumber() {
const handleBlur = () => {
setTouched(true);
if (!phoneNumber) {
toast({
message: t('settingForm.phoneNumberIsInvalid'),
severity: 'error',
});
setFormError(t('settingForm.thisFieldIsRequired'));
return;
}