mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
amazon: fix cancelling subscription: use correct path
This commit is contained in:
@@ -239,7 +239,7 @@ api.subscribeCancel = {
|
||||
AmazonBillingAgreementId: billingAgreementId,
|
||||
});
|
||||
|
||||
if (details.BillingAgreementDetails.BillingAgreementStatus.status !== 'Closed') {
|
||||
if (details.BillingAgreementDetails.BillingAgreementStatus.State !== 'Closed') {
|
||||
await amzLib.closeBillingAgreement({
|
||||
AmazonBillingAgreementId: billingAgreementId,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user