Fixed payment issue after success action

This commit is contained in:
Mustafa Buyukcelebi 2019-08-23 16:18:50 +03:00
parent fd4b8ca3f0
commit 69e0ddce39

View File

@ -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() {