Skip to content

Commit

Permalink
fix(protocol-designer): set numMultiples to numItems instead of 0 (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader authored May 29, 2024
1 parent 7de5e83 commit 50f455b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ export function EquipmentOption(props: EquipmentOptionProps): JSX.Element {
const { t } = useTranslation(['tooltip', 'shared'])
const [equipmentTargetProps, equipmentTooltipProps] = useHoverTooltip()
const [tempTargetProps, tempTooltipProps] = useHoverTooltip()
const [numMultiples, setNumMultiples] = React.useState<number>(0)
const [numMultiples, setNumMultiples] = React.useState<number>(
multiples?.numItems ?? 0
)

const EQUIPMENT_OPTION_STYLE = css`
background-color: ${COLORS.white};
Expand Down Expand Up @@ -151,6 +153,7 @@ export function EquipmentOption(props: EquipmentOptionProps): JSX.Element {
} else if (numItems > 0) {
downArrowStyle = ARROW_STYLE_ACTIVE
}

iconInfo = (
<Flex
flexDirection={DIRECTION_COLUMN}
Expand Down

0 comments on commit 50f455b

Please sign in to comment.