Skip to content

Commit

Permalink
fix: avoid accessing undefined status variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Nov 4, 2024
1 parent eb38cdf commit 2e9bf6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-hairs-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@utrecht/radio-group-react": patch
---

Fix error caused by undefined `status` variable.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const RadioOption = forwardRef(
) => {
const inputId = useId();
const descriptionId = useId();
const statusId = useId();
const errorMessageId = useId();

return (
Expand All @@ -69,7 +68,6 @@ export const RadioOption = forwardRef(
clsx({
[descriptionId]: description,
[errorMessageId]: invalid,
[statusId]: status,
}) || undefined
}
checked={checked}
Expand Down

0 comments on commit 2e9bf6f

Please sign in to comment.