Commit c1b20389 authored by Fred's avatar Fred

fix untuk ios

parent 1dade9cd
...@@ -134,10 +134,17 @@ class Account extends React.Component { ...@@ -134,10 +134,17 @@ class Account extends React.Component {
// Alert.alert(i18n.t('success'), i18n.t('alertclaimcredit')) // Alert.alert(i18n.t('success'), i18n.t('alertclaimcredit'))
}).catch(error => { }).catch(error => {
console.log("failed processing claim_old_balance") console.log("failed processing claim_old_balance")
this.setState({spinner: false})
this._getProfile() this._getProfile()
let response = error.response.data let response = error.response.data
Alert.alert("Error", response.msg) Alert.alert(
"Error",
response.msg,
[
{
text: 'OK', onPress: () => this.setState({spinner: false})
}
]
);
}) })
} }
......
...@@ -312,10 +312,17 @@ class Home extends React.Component { ...@@ -312,10 +312,17 @@ class Home extends React.Component {
// Alert.alert(i18n.t('success'), i18n.t('alertclaimcredit')) // Alert.alert(i18n.t('success'), i18n.t('alertclaimcredit'))
}).catch(error => { }).catch(error => {
console.log("failed processing claim_old_balance") console.log("failed processing claim_old_balance")
this.setState({spinner: false})
this._account() this._account()
let response = error.response.data let response = error.response.data
Alert.alert("Error", response.msg) Alert.alert(
"Error",
response.msg,
[
{
text: 'OK', onPress: () => this.setState({spinner: false})
}
]
);
}) })
} }
......
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