From 5a29dc48b5f25527d6d264f7ce822f9756058a2e Mon Sep 17 00:00:00 2001 From: Ane Date: Mon, 26 Aug 2024 11:42:07 +0200 Subject: [PATCH] fix: Fix bug in RadioButtonGroup onChange event handler --- src/components/forms/radioButtonGroup/RadioButtonGroup.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/forms/radioButtonGroup/RadioButtonGroup.tsx b/src/components/forms/radioButtonGroup/RadioButtonGroup.tsx index 8ce8c67f5..a35464bb1 100644 --- a/src/components/forms/radioButtonGroup/RadioButtonGroup.tsx +++ b/src/components/forms/radioButtonGroup/RadioButtonGroup.tsx @@ -26,7 +26,7 @@ export const RadioButtonGroup = ({ }: RadioButtonGroupProps) => { const onChange = (e: React.ChangeEvent) => { const selectedOption = options.find( - (option) => option.id === e.target.value + (option) => option.id === e.target.value, ); if (selectedOption) { onValueChange(selectedOption); @@ -52,4 +52,4 @@ export const RadioButtonGroup = ({ ); -}; \ No newline at end of file +};