From c2ca832b804afb3b5817afece0c98b4e9e504020 Mon Sep 17 00:00:00 2001 From: harukin-DeskMini Date: Sun, 5 Feb 2023 04:56:24 +0900 Subject: [PATCH] =?UTF-8?q?=E9=A7=85=E5=90=8D=E6=A8=99=E3=81=AB=E4=B8=8D?= =?UTF-8?q?=E8=A6=81=E3=81=AA=E8=A6=81=E7=B4=A0=E3=81=8C=E6=AE=8B=E3=82=8B?= =?UTF-8?q?=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/駅名表/Sign.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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 }) => { + ) : ( + <> )} + ) : ( + <> )}