Skip to content

Commit

Permalink
fix return on mobile
Browse files Browse the repository at this point in the history
if isMobile, now returns null instead of undefined, for better tests
  • Loading branch information
estevanmaito committed May 18, 2019
1 parent c868f8a commit ac0458c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/moveTooltip.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import getTooltipPosition from "./getTooltipPosition";

export default function moveTooltip(props) {
if (props.isMobile) return;
if (props.isMobile) return null;

const { top, left } = getTooltipPosition(props);
let tooltip = document.querySelector(".sharect");
Expand Down

0 comments on commit ac0458c

Please sign in to comment.