From 7b6c18ad56420354a17c82b6452fa6ac1f1a0971 Mon Sep 17 00:00:00 2001 From: zubair-ce07 Date: Tue, 16 Apr 2024 18:57:43 +1000 Subject: [PATCH] fix: disables eslint issues --- src/payment/checkout/Checkout.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/payment/checkout/Checkout.jsx b/src/payment/checkout/Checkout.jsx index c3c77eb90..23630fd38 100644 --- a/src/payment/checkout/Checkout.jsx +++ b/src/payment/checkout/Checkout.jsx @@ -48,10 +48,12 @@ class Checkout extends React.Component { this.props.submitPayment({ method: 'paypal' }); + // eslint-disable-next-line react/prop-types const { products } = this.props; const skus = []; - for (const product of products){ + // eslint-disable-next-line no-restricted-syntax + for (const product of products) { skus.push(product.sku); } localStorage.setItem('skus', JSON.stringify(skus));