Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async queryPurchaseHistory() {
const { responseCode, results } = await getPurchaseHistoryAsync(true);
if (responseCode === IAPResponseCode.OK) {
this.setState({ history: results });
}
}