getTrainTypeの仕様更新

This commit is contained in:
harukin-expo-dev-env
2025-09-11 16:11:36 +00:00
parent ad2d18e263
commit 71ee79289a

View File

@@ -163,6 +163,7 @@ export const getTrainType: getTrainType = ({ type, id, whiteMode }) => {
}; };
case "Other": case "Other":
default: default:
if(id){
switch (true) { switch (true) {
case !!id.includes("T"): case !!id.includes("T"):
return { return {
@@ -196,6 +197,8 @@ export const getTrainType: getTrainType = ({ type, id, whiteMode }) => {
data: "notService", data: "notService",
}; };
} }
}
return { return {
color: whiteMode ? "black" : "white", color: whiteMode ? "black" : "white",
name: "その他", name: "その他",