Commit 1dade9cd authored by William Goszal's avatar William Goszal 🚴

Fix bug di Card Activation bagian handleToken, tidak menutup spinner saat phonenumber gak diisi

parent 9fb2ced5
...@@ -94,13 +94,11 @@ class CardActivation extends React.Component { ...@@ -94,13 +94,11 @@ class CardActivation extends React.Component {
}) })
} }
handleToken() { handleToken() {
this.setState({ if (this.state.mobile_phone == '') {
spinner: true, Alert.alert('',i18n.t('inputPhoneNumber'))
})
if (this.state.mobile_phone == '') {
Alert.alert('',i18n.t('inputPhoneNumber'));
} else { } else {
this.setState({ spinner: true })
let params = { let params = {
session_id: this.props.session_id, session_id: this.props.session_id,
mobile_phone: this.state.mobile_phone mobile_phone: this.state.mobile_phone
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment