Skip to content

Commit

Permalink
fix: remove unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sangar-1028 committed Nov 10, 2023
1 parent a75ce3e commit 6bf03f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/PopoverWithMeasuredContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,9 @@ function PopoverWithMeasuredContent(props) {
}

let verticalConstraint;
const anchorLocationVertical = props.anchorPosition.vertical;

switch (props.anchorAlignment.vertical) {
case CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.BOTTOM:
verticalConstraint = {top: anchorLocationVertical - popoverHeight};
verticalConstraint = {top: props.anchorPosition.vertical - popoverHeight};
break;
case CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.CENTER:
verticalConstraint = {
Expand Down

0 comments on commit 6bf03f2

Please sign in to comment.