amazon: fix cancelling subscription: use correct path

This commit is contained in:
Matteo Pagliazzi
2016-10-12 19:33:14 +02:00
parent aeb86db306
commit d04a4fb1ed

View File

@@ -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,
});