Skip to content

Commit

Permalink
refactor: replace ?? with ||
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Dec 30, 2022
1 parent 7522351 commit 6e82d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/middleware/autoPlacement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export const autoPlacement = (
)?.placement;

const resetPlacement =
placementThatFitsOnAllSides ??
placementThatFitsOnAllSides ||
placementsSortedByLeastOverflow[0].placement;

if (resetPlacement !== placement) {
Expand Down

0 comments on commit 6e82d7b

Please sign in to comment.