Skip to content

Commit deff86a

Browse files
Switch to nullish coalescing
1 parent e0dc05b commit deff86a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/AccordionItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const AccordionItem = ({
2424
...rest
2525
}: Props): JSX.Element => {
2626
const [instanceUuid] = useState<UUID>(nextUuid());
27-
const uuid = customUuid || instanceUuid;
27+
const uuid = customUuid ?? instanceUuid;
2828

2929
const renderChildren = (itemContext: ItemContext): JSX.Element => {
3030
const { expanded } = itemContext;

0 commit comments

Comments
 (0)