Skip to content

Commit

Permalink
remove unneeded else
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood committed Jun 9, 2023
1 parent bfb1649 commit a5c20fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/gamut/src/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ const findScrollingParent = ({
)
) {
return parentElement;
} else {
return findScrollingParent(parentElement);
}
} else {
return null;
return findScrollingParent(parentElement);
}
return null;
};

export const Popover: React.FC<PopoverProps> = ({
Expand Down

0 comments on commit a5c20fa

Please sign in to comment.