Skip to content

Commit

Permalink
fix(RadioButtons): Fix duck-typing for radio buttons options
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnathanWeisner committed Apr 3, 2024
1 parent e8e46a2 commit 4708f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RadioButtons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const RadioButtons = ({
>
{Object.entries(options).map(([label, subOptions]) => {
const { value: inputValue, details } =
typeof subOptions === "string" ? { value: subOptions } : subOptions;
typeof subOptions === "object" ? subOptions : { value: subOptions };
return (
<label
className={cc([
Expand Down

0 comments on commit 4708f3c

Please sign in to comment.