Skip to content

Commit

Permalink
re-run lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-Therrien-Beslogic committed Oct 10, 2024
1 parent 522df0e commit 17e475b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ const OptionQuantitySelector = <TValue extends OptionQuantityValueType>(
optionQuantity.option.value === option.value
)

existingOptionIndex >= 0
? updateQuantity(existingOptionIndex, 1)
: onChange([...selected, { option, quantity: 1 }])
existingOptionIndex === -1
? onChange([...selected, { option, quantity: 1 }])
: updateQuantity(existingOptionIndex, 1)
}

const updateQuantity = (
Expand Down

0 comments on commit 17e475b

Please sign in to comment.