From 6cd72530fa51fde1723182066d6c23e98a4159d5 Mon Sep 17 00:00:00 2001 From: Masanari Hamada Date: Fri, 6 Dec 2024 14:16:08 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A4=E5=AE=9A=E3=81=AE=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/app/contexts/simulator-context.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/app/contexts/simulator-context.tsx b/frontend/app/contexts/simulator-context.tsx index de278ce6..9a57546d 100644 --- a/frontend/app/contexts/simulator-context.tsx +++ b/frontend/app/contexts/simulator-context.tsx @@ -189,11 +189,7 @@ export const SimulatorProvider = ({ children }: { children: ReactNode }) => { }); const [clientRideId, setClientRideId] = useState(); - const isAnotherSimulatorBeingUsed = !!( - clientRideId && - data?.ride_id && - clientRideId !== data.ride_id - ); + const isAnotherSimulatorBeingUsed = !clientRideId && !!data?.ride_id; console.log(isAnotherSimulatorBeingUsed);