Skip to content

Commit

Permalink
fix: Remove redundant apple date match check
Browse files Browse the repository at this point in the history
  • Loading branch information
jawad-khan committed Jul 29, 2024
1 parent 4b95ead commit 5418b39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ecommerce/extensions/iap/processors/base_iap.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ def parse_ios_response(self, response, product_id):
"""
purchases = response['receipt'].get('in_app', [])
for purchase in purchases:
if purchase['product_id'] == product_id and \
response['receipt']['original_purchase_date_ms'] == purchase['original_purchase_date_ms']:
if purchase['product_id'] == product_id:

response['receipt']['in_app'] = [purchase]
break
Expand Down

0 comments on commit 5418b39

Please sign in to comment.