diff --git a/packages/components/src/core/SegmentedControl/index.tsx b/packages/components/src/core/SegmentedControl/index.tsx index 392441f1b..2a77b8206 100644 --- a/packages/components/src/core/SegmentedControl/index.tsx +++ b/packages/components/src/core/SegmentedControl/index.tsx @@ -42,13 +42,11 @@ const SegmentedControl = (props: SegmentedControlProps) => { event: React.MouseEvent, newActive: string | null ) => { - if (newActive !== null) { - if (!isControlled) { - setActive(newActive); - } - if (onChangeProp) { - onChangeProp(event, newActive); - } + if (!isControlled) { + setActive(newActive); + } + if (onChangeProp) { + onChangeProp(event, newActive); } };