fix phone mask bug

This commit is contained in:
GotPPay
2018-06-01 16:38:13 +02:00
parent 9802c23210
commit e8205d62a2

View File

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