小さなミスを修正
This commit is contained in:
parent
2c505c4b17
commit
748350178d
@ -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}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
2
menu.js
2
menu.js
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user