fix for red screen during phone number verification

This commit is contained in:
Akinwale Ariwodola 2018-09-26 17:55:03 +01:00
parent 3283cc447e
commit 7c969cbe93

View file

@ -44,7 +44,7 @@ class PhoneNumberRewardSubcard extends React.PureComponent {
DeviceEventEmitter.addListener('onVerificationCodeReceived', this.receiveVerificationCode);
const { phone } = this.props;
if (phone && String(phone).trim().length() > 0) {
if (phone && String(phone).trim().length > 0) {
this.setState({ newPhoneAdded: true });
}