From 3fec174a79b3080c6c969ef3784b8b934d1551b4 Mon Sep 17 00:00:00 2001 From: Iago Espinoza Date: Thu, 31 Oct 2024 17:16:26 -0300 Subject: [PATCH] lint fix --- react/__tests__/components/SKUSelector.test.tsx | 3 +-- react/components/SKUSelector/components/SKUSelector.tsx | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/react/__tests__/components/SKUSelector.test.tsx b/react/__tests__/components/SKUSelector.test.tsx index e454d809c..db29415b9 100644 --- a/react/__tests__/components/SKUSelector.test.tsx +++ b/react/__tests__/components/SKUSelector.test.tsx @@ -129,7 +129,7 @@ describe('', () => { name: 'Gray Shoe', variations: ['Size', 'Color'], variationValues: { Size: '41', Color: 'Gray' }, - sellers: [defaultSeller1], + sellers: [defaultSeller1], images: [], }, { @@ -147,7 +147,6 @@ describe('', () => { ) expect(possibleItemsOrderedByAvailability[0].itemId).toEqual('2') - }) it('should render only three main variations', async () => { diff --git a/react/components/SKUSelector/components/SKUSelector.tsx b/react/components/SKUSelector/components/SKUSelector.tsx index 3a2aeaed4..479cb5c2d 100644 --- a/react/components/SKUSelector/components/SKUSelector.tsx +++ b/react/components/SKUSelector/components/SKUSelector.tsx @@ -143,12 +143,10 @@ export const orderItemsByAvailability = ( ? defaultSellerItem1.commertialOffer.AvailableQuantity : 0 - const availabilityItem2 = defaultSellerItem2 ? defaultSellerItem2.commertialOffer.AvailableQuantity : 0 - return availabilityItem2 - availabilityItem1 }