Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iago1501 committed Oct 31, 2024
1 parent 8ede4cc commit 3fec174
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions react/__tests__/components/SKUSelector.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe('<SKUSelector />', () => {
name: 'Gray Shoe',
variations: ['Size', 'Color'],
variationValues: { Size: '41', Color: 'Gray' },
sellers: [defaultSeller1],
sellers: [defaultSeller1],
images: [],
},
{
Expand All @@ -147,7 +147,6 @@ describe('<SKUSelector />', () => {
)

expect(possibleItemsOrderedByAvailability[0].itemId).toEqual('2')

})

it('should render only three main variations', async () => {
Expand Down
2 changes: 0 additions & 2 deletions react/components/SKUSelector/components/SKUSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,10 @@ export const orderItemsByAvailability = (
? defaultSellerItem1.commertialOffer.AvailableQuantity
: 0


const availabilityItem2 = defaultSellerItem2
? defaultSellerItem2.commertialOffer.AvailableQuantity
: 0


return availabilityItem2 - availabilityItem1
}

Expand Down

0 comments on commit 3fec174

Please sign in to comment.