diff --git a/components/custom-train-data.ts b/components/custom-train-data.ts index 2f90f75..5a326f1 100644 --- a/components/custom-train-data.ts +++ b/components/custom-train-data.ts @@ -402,7 +402,6 @@ export const customTrainDataDetector = (TrainNumber: string) => { info: " 土曜・休日は多度津-琴平間運休", }; - case "5109M": case "111M": case "115M": case "117M": @@ -410,25 +409,34 @@ export const customTrainDataDetector = (TrainNumber: string) => { case "123M": case "127M": case "131M": - case "5135M": case "139M": - case "5251M": case "147M": case "151M": return { type: "Rapid", trainName: "サンポート南風リレー", - trainIcon: "", - infoUrl: "", + trainIcon: null, + infoUrl: null, trainNumDistance: null, - info: "", + info: null, + }; + case "5109M": + case "5135M": + case "5251M": + return { + type: "OneManRapid", + trainName: "サンポート南風リレー", + trainIcon: null, + infoUrl: null, + trainNumDistance: null, + info: null, }; case "137M": return { type: "Rapid", trainName: "サンポート", - trainIcon: "", - infoUrl: "", + trainIcon: null, + infoUrl: null, trainNumDistance: null, info: "土曜・休日運休", }; @@ -437,16 +445,12 @@ export const customTrainDataDetector = (TrainNumber: string) => { return { type: "Normal", trainName: "南風リレー", - trainIcon: "", - infoUrl: "", + trainIcon: null, + infoUrl: null, trainNumDistance: null, - info: "", + info: null, }; - case "5118M": - case "5120M": - case "5124M": - case "5126M": case "130M": case "132M": case "136M": @@ -454,7 +458,6 @@ export const customTrainDataDetector = (TrainNumber: string) => { case "144M": case "146M": case "150M": - case "5252M": case "156M": return { type: "Rapid", @@ -464,6 +467,19 @@ export const customTrainDataDetector = (TrainNumber: string) => { trainNumDistance: null, info: "", }; + case "5118M": + case "5120M": + case "5124M": + case "5126M": + case "5252M": + return { + type: "OneManRapid", + trainName: "サンポート南風リレー", + trainIcon: null, + infoUrl: null, + trainNumDistance: null, + info: null, + }; //サンライズ瀬戸 case "5032M":