fix wallet credit treatment
This commit is contained in:
parent
215d20ecc5
commit
e06d354f33
|
@ -197,6 +197,7 @@ class HistoryItemDetails extends Component {
|
||||||
|
|
||||||
if (errorTreatDemand !== null) {
|
if (errorTreatDemand !== null) {
|
||||||
if (typeof errorTreatDemand.data !== 'undefined') {
|
if (typeof errorTreatDemand.data !== 'undefined') {
|
||||||
|
if (errorTreatDemand.status === 426) {
|
||||||
Alert.alert(
|
Alert.alert(
|
||||||
I18n.t("ERROR_TREATMENT_DEMAND"),
|
I18n.t("ERROR_TREATMENT_DEMAND"),
|
||||||
errorTreatDemand.data.error,
|
errorTreatDemand.data.error,
|
||||||
|
@ -215,10 +216,25 @@ class HistoryItemDetails extends Component {
|
||||||
this.props.creditDemandResetReducer();
|
this.props.creditDemandResetReducer();
|
||||||
this.props.creditCancelResetReducer();
|
this.props.creditCancelResetReducer();
|
||||||
}
|
}
|
||||||
|
}],
|
||||||
|
{ 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 }
|
{ cancelable: false }
|
||||||
)
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue