小さなミスを修正

This commit is contained in:
harukin-expo-dev-env 2025-04-13 16:31:11 +00:00
parent 2c505c4b17
commit 748350178d
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ export const CarouselBox = ({
onPress={() => setSelectedCurrentStation(index)} onPress={() => setSelectedCurrentStation(index)}
currentStation={d} currentStation={d}
active={active} active={active}
key={numberIndex} key={numberIndex + index}
/> />
); );
} else { } else {
@ -114,7 +114,7 @@ export const CarouselBox = ({
<SimpleDot <SimpleDot
onPress={() => setSelectedCurrentStation(index)} onPress={() => setSelectedCurrentStation(index)}
active={active} active={active}
key={numberIndex} key={numberIndex + index}
/> />
); );
} }

View File

@ -113,7 +113,7 @@ export default function Menu({ getCurrentTrain, scrollRef }) {
); );
} else { } else {
setAllStationData( setAllStationData(
[currentStation, ...favoriteStation].filter((d) => d != undefined) favoriteStation.filter((d) => d != undefined)
); );
} }
}, [currentStation, favoriteStation, stationListMode]); }, [currentStation, favoriteStation, stationListMode]);