Commit 7e1d2203 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo
parents a1c138f3 c1b20389
......@@ -134,10 +134,17 @@ class Account extends React.Component {
// Alert.alert(i18n.t('success'), i18n.t('alertclaimcredit'))
}).catch(error => {
console.log("failed processing claim_old_balance")
this.setState({spinner: false})
this._getProfile()
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 {
// Alert.alert(i18n.t('success'), i18n.t('alertclaimcredit'))
}).catch(error => {
console.log("failed processing claim_old_balance")
this.setState({spinner: false})
this._account()
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