Skip to content

Commit

Permalink
fix: disables eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zubair-ce07 committed Apr 16, 2024
1 parent d6e0b78 commit 7b6c18a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/payment/checkout/Checkout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 7b6c18a

Please sign in to comment.