Skip to content

Commit

Permalink
Switch to nullish coalescing
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinhenderson committed Jul 30, 2021
1 parent e0dc05b commit deff86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AccordionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const AccordionItem = ({
...rest
}: Props): JSX.Element => {
const [instanceUuid] = useState<UUID>(nextUuid());
const uuid = customUuid || instanceUuid;
const uuid = customUuid ?? instanceUuid;

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

0 comments on commit deff86a

Please sign in to comment.