diff --git a/components/ActionSheetComponents/EachTrainInfoCore.js b/components/ActionSheetComponents/EachTrainInfoCore.js index 4275a4a..0b99ec1 100644 --- a/components/ActionSheetComponents/EachTrainInfoCore.js +++ b/components/ActionSheetComponents/EachTrainInfoCore.js @@ -114,7 +114,7 @@ export const EachTrainInfoCore = ({ const type = getType(limitedArray[0]); switch (true) { - case limitedArray[1]: + case !!limitedArray[1]: // 特急の場合は、列車名を取得 return type + migrateTrainName(limitedArray[1]); case trainData.length == 0: