Added phone validation method inside PhoneNumber class which will help in validation before form submission. I needed to validate the current phone number before final submission and onSubmit. So I wrote the isValidNumber() method inside the PhoneNumber class so that I can quickly validate the PhoneNumber object.
Added phone validation method inside PhoneNumber class which will help in validation before form submission. I needed to validate the current phone number before final submission and onSubmit. So I wrote the isValidNumber() method inside the PhoneNumber class so that I can quickly validate the PhoneNumber object.