From f4a0eca262d532e8f4477d2b50126fcb34294048 Mon Sep 17 00:00:00 2001 From: chad1008 <13856531+chad1008@users.noreply.github.com> Date: Thu, 1 Dec 2022 10:08:11 -0500 Subject: [PATCH] remove typecasting on `setSelectedValue` --- .../toggle-group-control/as-button-group.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/components/src/toggle-group-control/toggle-group-control/as-button-group.tsx b/packages/components/src/toggle-group-control/toggle-group-control/as-button-group.tsx index 0de5543bcc7318..a9e78790711d34 100644 --- a/packages/components/src/toggle-group-control/toggle-group-control/as-button-group.tsx +++ b/packages/components/src/toggle-group-control/toggle-group-control/as-button-group.tsx @@ -60,9 +60,7 @@ function UnforwardedToggleGroupControlAsButtonGroup( () => ( { baseId, state: selectedValue, - setState: setSelectedValue as React.Dispatch< - React.SetStateAction< string | number | undefined > - >, + setState: setSelectedValue, isBlock: ! isAdaptiveWidth, isDeselectable: true, size,