mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-03 11:34:30 +03:00
Fixed payment issue after success action
This commit is contained in:
parent
fd4b8ca3f0
commit
69e0ddce39
@ -74,6 +74,7 @@ class BoostContainer extends Component {
|
|||||||
} else if (Platform.OS === 'android') {
|
} else if (Platform.OS === 'android') {
|
||||||
RNIap.consumePurchaseAndroid(token);
|
RNIap.consumePurchaseAndroid(token);
|
||||||
}
|
}
|
||||||
|
this.setState({ isProccesing: false });
|
||||||
})
|
})
|
||||||
.catch(err =>
|
.catch(err =>
|
||||||
bugsnag.notify(err, report => {
|
bugsnag.notify(err, report => {
|
||||||
@ -94,6 +95,7 @@ class BoostContainer extends Component {
|
|||||||
error.debugMessage,
|
error.debugMessage,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
this.setState({ isProccesing: false });
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -121,7 +123,7 @@ class BoostContainer extends Component {
|
|||||||
|
|
||||||
if (sku !== 'freePoints') {
|
if (sku !== 'freePoints') {
|
||||||
try {
|
try {
|
||||||
await RNIap.requestPurchase(sku, false);
|
RNIap.requestPurchase(sku, false);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
bugsnag.notify(err, report => {
|
bugsnag.notify(err, report => {
|
||||||
report.metadata = {
|
report.metadata = {
|
||||||
@ -134,8 +136,6 @@ class BoostContainer extends Component {
|
|||||||
routeName: ROUTES.SCREENS.FREE_ESTM,
|
routeName: ROUTES.SCREENS.FREE_ESTM,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState({ isProccesing: false });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
Loading…
Reference in New Issue
Block a user