Skip to content

Commit 5629404

Browse files
committed
fix: stations bug fix (#develop)
1 parent a8fd70a commit 5629404

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

services/ahhachul.com/src/apis/request/user.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ export const prefetchUserFavoriteStations = async () => {
5454
export const createUserFavoriteStations = async (stations: any) => {
5555
const response = await axiosInstance.post<ApiResponse<UserFavoriteStations>>(
5656
'/members/bookmarks/stations',
57-
{ stations: stations.map((item: any) => ({ ...item, stationName: item.stationName + '역' })) },
57+
{ stations },
58+
// { stations: stations.map((item: any) => ({ ...item, stationName: item.stationName + '역' })) },
5859
);
5960

6061
return response.data;

services/ahhachul.com/src/components/domain/home/stations/trainRealTimes/TrainRealTimes.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ const TrainArrivalStatus = memo(
6666
: currentTrainArrivalCode === 'RUNNING'
6767
? formatTime(remainingSeconds)
6868
: currentTrainArrivalCode
69-
? trainArrivalCodeMap[currentTrainArrivalCode as keyof typeof trainArrivalCodeMap] ||
70-
'운행 종료'
69+
? trainArrivalCodeMap[currentTrainArrivalCode as keyof typeof trainArrivalCodeMap] || ''
7170
: '운행 종료';
7271

7372
return (

0 commit comments

Comments
 (0)