Skip to content

Commit

Permalink
Change x-axis position condition check
Browse files Browse the repository at this point in the history
xpaczka committed Nov 7, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 5be3e4c commit 7606e51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/components/Popup.tsx
Original file line number Diff line number Diff line change
@@ -35,8 +35,8 @@ export default function Popup({
const transition = useVisibilityTransition(isVisible)
const xPosition: XAxisPsition = {}

if (leftPosition) xPosition.left = leftPosition
if (rightPosition) xPosition.right = rightPosition
if (leftPosition !== null) xPosition.left = leftPosition
if (rightPosition !== null) xPosition.right = rightPosition

return (
<>

0 comments on commit 7606e51

Please sign in to comment.