fix wallet credit treatment
This commit is contained in:
parent
215d20ecc5
commit
e06d354f33
|
@ -197,28 +197,44 @@ class HistoryItemDetails extends Component {
|
||||||
|
|
||||||
if (errorTreatDemand !== null) {
|
if (errorTreatDemand !== null) {
|
||||||
if (typeof errorTreatDemand.data !== 'undefined') {
|
if (typeof errorTreatDemand.data !== 'undefined') {
|
||||||
Alert.alert(
|
if (errorTreatDemand.status === 426) {
|
||||||
I18n.t("ERROR_TREATMENT_DEMAND"),
|
Alert.alert(
|
||||||
errorTreatDemand.data.error,
|
I18n.t("ERROR_TREATMENT_DEMAND"),
|
||||||
[{
|
errorTreatDemand.data.error,
|
||||||
text: I18n.t('CANCEL_LABEL'),
|
[{
|
||||||
onPress: () => { },
|
text: I18n.t('CANCEL_LABEL'),
|
||||||
style: 'cancel'
|
onPress: () => { },
|
||||||
},
|
style: 'cancel'
|
||||||
{
|
},
|
||||||
text: I18n.t("OK"), onPress: () => {
|
{
|
||||||
setTimeout(() => {
|
text: I18n.t("OK"), onPress: () => {
|
||||||
this.setState({
|
setTimeout(() => {
|
||||||
displayAmountModifyDialog: true
|
this.setState({
|
||||||
});
|
displayAmountModifyDialog: true
|
||||||
}, 10);
|
});
|
||||||
this.props.creditDemandResetReducer();
|
}, 10);
|
||||||
this.props.creditCancelResetReducer();
|
this.props.creditDemandResetReducer();
|
||||||
}
|
this.props.creditCancelResetReducer();
|
||||||
}
|
}
|
||||||
],
|
}],
|
||||||
{ cancelable: false }
|
{ cancelable: false }
|
||||||
)
|
);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Alert.alert(
|
||||||
|
I18n.t("ERROR_TREATMENT_DEMAND"),
|
||||||
|
errorTreatDemand.data.error,
|
||||||
|
[
|
||||||
|
{
|
||||||
|
text: I18n.t("OK"), onPress: () => {
|
||||||
|
this.props.creditDemandResetReducer();
|
||||||
|
this.props.creditCancelResetReducer();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
{ cancelable: false }
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue