diff --git a/components/駅名表/Sign.js b/components/駅名表/Sign.js index 3d0484c..71f7ae7 100644 --- a/components/駅名表/Sign.js +++ b/components/駅名表/Sign.js @@ -145,10 +145,10 @@ const NexPreStationLine = ({ nexStation, preStation }) => { return ( - {preStation && ( + {preStation ? ( <> - {preStation.StationNumber && ( + {preStation.StationNumber ? ( { + ) : ( + <> )} + ) : ( + <> )} - {nexStation && ( + {nexStation ? ( <> - {nexStation.StationNumber && ( + {nexStation.StationNumber ? ( @@ -184,9 +188,13 @@ const NexPreStationLine = ({ nexStation, preStation }) => { + ) : ( + <> )} + ) : ( + <> )}