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 10148af commit 8ede4cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 3 additions & 4 deletions react/__tests__/components/SKUSelector.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ describe('<SKUSelector />', () => {
itemId: '1',
name: 'Gray Shoe',
variations: ['Size', 'Color'],
variationValues: {Size: '41', Color: 'Gray'},
sellers: [defaultSeller1],
variationValues: { Size: '41', Color: 'Gray' },
sellers: [defaultSeller1],

Check failure on line 132 in react/__tests__/components/SKUSelector.test.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `·`
images: [],
},
{
itemId: '2',
name: 'Gray Shoe',
variations: ['Size', 'Color'],
variationValues: {Size: '41', Color: 'Gray'},
variationValues: { Size: '41', Color: 'Gray' },
sellers: [defaultSeller2],
images: [],
},
Expand All @@ -147,7 +147,6 @@ describe('<SKUSelector />', () => {
)

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

Check failure on line 149 in react/__tests__/components/SKUSelector.test.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `⏎····`


})

Expand Down
6 changes: 4 additions & 2 deletions react/components/SKUSelector/components/SKUSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,13 @@ export const orderItemsByAvailability = (
const defaultSellerItem2 = getDefaultSeller(item2.sellers)

const availabilityItem1 = defaultSellerItem1
? defaultSellerItem1.commertialOffer.AvailableQuantity : 0
? defaultSellerItem1.commertialOffer.AvailableQuantity
: 0


Check failure on line 146 in react/components/SKUSelector/components/SKUSelector.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `⏎`
const availabilityItem2 = defaultSellerItem2
? defaultSellerItem2.commertialOffer.AvailableQuantity : 0
? defaultSellerItem2.commertialOffer.AvailableQuantity
: 0

Check failure on line 149 in react/components/SKUSelector/components/SKUSelector.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `⏎`


return availabilityItem2 - availabilityItem1
Expand Down

0 comments on commit 8ede4cc

Please sign in to comment.