Skip to content

Commit 94a0b23

Browse files
committed
Fix TypeScript type for deferred purchase event handler
1 parent 0b8c10e commit 94a0b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/QonversionInternal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ export default class QonversionInternal implements QonversionApi {
396396
}
397397

398398
private deferredPurchaseCompletedEventHandler = (payload: Object) => {
399-
const purchaseResult = Mapper.convertPurchaseResult(payload as Record<string, any>);
399+
const purchaseResult = Mapper.convertPurchaseResult(payload as QPurchaseResult);
400400

401401
if (purchaseResult) {
402402
this.deferredPurchasesListener?.onDeferredPurchaseCompleted(purchaseResult);

0 commit comments

Comments
 (0)