|
@@ -11,7 +11,7 @@ export default class Index extends Component {
|
11
|
11
|
state = {}
|
12
|
12
|
|
13
|
13
|
componentDidMount() {
|
14
|
|
- const { user = {}} = this.props
|
|
14
|
+ const { user = {} } = this.props
|
15
|
15
|
if (user.phone && typeof this.props.onSuccess === 'function') {
|
16
|
16
|
this.props.onSuccess();
|
17
|
17
|
}
|
|
@@ -30,7 +30,7 @@ export default class Index extends Component {
|
30
|
30
|
}
|
31
|
31
|
|
32
|
32
|
return
|
33
|
|
- } else {
|
|
33
|
+ } else {
|
34
|
34
|
if (typeof this.props.onSuccess === 'function') {
|
35
|
35
|
this.props.onSuccess(phoneNumber);
|
36
|
36
|
}
|
|
@@ -86,7 +86,7 @@ export default class Index extends Component {
|
86
|
86
|
)
|
87
|
87
|
}
|
88
|
88
|
render() {
|
89
|
|
- const { user = {}} = this.props
|
|
89
|
+ const { user = {} } = this.props
|
90
|
90
|
|
91
|
91
|
return (
|
92
|
92
|
<Block>
|