fix possible trim error on first run email entry
This commit is contained in:
parent
dd7f1e82ba
commit
d52436e8d4
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ class FirstRunScreen extends React.PureComponent {
|
|||
onEmailChanged = email => {
|
||||
this.setState({ email });
|
||||
if (Constants.FIRST_RUN_PAGE_EMAIL_COLLECT === this.state.currentPage) {
|
||||
this.setState({ showSkip: !email || email.trim().length === 0 });
|
||||
this.setState({ showSkip: !email || typeof email !== 'string' || email.trim().length === 0 });
|
||||
} else {
|
||||
this.setState({ showSkip: false });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue