Do not show tutorial if screen is closed (#6401)

This commit is contained in:
Elias Nahum
2022-06-17 14:51:50 -04:00
committed by GitHub
parent ee3b655991
commit 47fe3e2219
2 changed files with 9 additions and 4 deletions

View File

@@ -139,8 +139,10 @@ export default function UserListRow({
endX: x + w + 20,
endY: y + h,
};
setShowTutorial(true);
setItemBounds(bounds);
if (viewRef.current) {
setShowTutorial(true);
setItemBounds(bounds);
}
});
};

View File

@@ -202,8 +202,11 @@ const ServerItem = ({
endX: x + w + 20,
endY: y + h,
};
setShowTutorial(true);
setItemBounds(bounds);
if (viewRef.current) {
setShowTutorial(true);
setItemBounds(bounds);
}
});
};