Iam trying to add a verification in my website i want to verify my phone number digits according to the phone number digit object coming from the api I hace tried multiple things but it didn't work i would be great if any one can help.
<div className="col-8 ml-0 pl-0">
<TextInputComponent
label={
<IntlMessages id="profile.emailbox.field.mobilenumber" />
}
type="text"
placeholder="Mobilnummer"
value={this.state.number}
onChange={(e) => {
if (e.target.value != this.props.user.data.user.phone_number_digits ) {
<small className="text-danger my-0 py-0">{this.state.errorNumber}</small>
}else {
this.handleChange(e, "number");
}
}}
/>
</div>
Aucun commentaire:
Enregistrer un commentaire