Skip to content

Commit 0fa99b0

Browse files
jboteroslukewalczak
authored andcommitted
Update SegmentedButtonMultiselectRealCase example to demonstrate stricter typing
* Remove unnecessary filter function in `filteredData` calculation * Fix ESLint error by updating code formatting
1 parent 0d4adcf commit 0fa99b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/src/Examples/SegmentedButtons/SegmentedButtonMultiselectRealCase.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const SegmentedButtonMultiselectRealCase = () => {
1212

1313
const filteredData = React.useMemo(
1414
() =>
15-
restaurantsData.filter((item) => value.includes(item.price.toString() as PriceRange)),
15+
value.includes(item.price.toString() as PriceRange)
16+
),
1617
[value]
1718
);
1819

0 commit comments

Comments
 (0)