From 4009b5eef2bfd08681572c1459ef217a01aa0c5d Mon Sep 17 00:00:00 2001 From: harukin-OneMix4 Date: Mon, 15 Jan 2024 20:30:56 +0900 Subject: [PATCH] =?UTF-8?q?=E9=81=85=E5=BB=B6=E6=99=82=E5=88=86=E3=81=AE?= =?UTF-8?q?=E5=8F=8D=E6=98=A0=E3=81=8C=E3=81=A7=E3=81=8D=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=AA=E3=81=84=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/ActionSheetComponents/EachTrainInfo.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/ActionSheetComponents/EachTrainInfo.js b/components/ActionSheetComponents/EachTrainInfo.js index 9dfab89..5afc5d5 100644 --- a/components/ActionSheetComponents/EachTrainInfo.js +++ b/components/ActionSheetComponents/EachTrainInfo.js @@ -614,10 +614,8 @@ const StationButton = ({ const dates = dayjs() .set("hour", parseInt(time.split(":")[0])) - .set("minute", parseInt(time.split(":")[1])); - if (!isNaN(currentTrainData?.delay)) { - dates.add(currentTrainData?.delay, "minute"); - } + .set("minute", parseInt(time.split(":")[1])) + .add(isNaN(currentTrainData?.delay) ? 0 : currentTrainData.delay, "minute"); const timeString = dates.format("HH:mm").split(":"); return (