Skip to content

Commit

Permalink
Wrap if statement in curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonv1lle committed May 12, 2024
1 parent 1d56d82 commit 40ce96c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export const useMenu_unstable = (props: MenuProps): MenuState => {
} else if (children.length === 1) {
menuPopover = children[0];
}
if (menuTrigger?.props?.children?.props?.id) triggerId = menuTrigger.props.children.props.id;
if (menuTrigger?.props?.children?.props?.id) {
triggerId = menuTrigger.props.children.props.id;
}

const { targetRef: triggerRef, containerRef: menuPopoverRef } = usePositioning(positioningState);

Expand Down

0 comments on commit 40ce96c

Please sign in to comment.