一部状況によって通過駅がしまえなくなるバグを修正

This commit is contained in:
harukin-expo-dev-env 2024-10-25 10:09:25 +00:00
parent 40cb1f3251
commit 5a062351e3

View File

@ -177,6 +177,7 @@ export const EachTrainInfoCore = ({
const [isJumped, setIsJumped] = useState(false);
useEffect(() => {
if (isJumped) return () => {};
setShowThrew(true);
if (!points) return () => {};
if (points.length == 0) return () => {};
const position = points.findIndex((d) => d == true);