fix phone mask bug
This commit is contained in:
@@ -99,10 +99,6 @@ class SignUp extends React.Component {
|
||||
|
||||
handlePhone = (event) => {
|
||||
let phone = event.target.value;
|
||||
if (phone.indexOf("+1") < 0 && phone.length == 10) {
|
||||
phone = "+1" + phone;
|
||||
phone = phone.substring(0, 12);
|
||||
}
|
||||
|
||||
this.setState(Object.assign(this.state, { phone_number: phone }));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user