Skip to content

Commit

Permalink
fix: 判定の修正
Browse files Browse the repository at this point in the history
narirou committed Dec 6, 2024
1 parent 783f5e9 commit 6cd7253
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions frontend/app/contexts/simulator-context.tsx
Original file line number Diff line number Diff line change
@@ -189,11 +189,7 @@ export const SimulatorProvider = ({ children }: { children: ReactNode }) => {
});

const [clientRideId, setClientRideId] = useState<string>();
const isAnotherSimulatorBeingUsed = !!(
clientRideId &&
data?.ride_id &&
clientRideId !== data.ride_id
);
const isAnotherSimulatorBeingUsed = !clientRideId && !!data?.ride_id;

console.log(isAnotherSimulatorBeingUsed);

0 comments on commit 6cd7253

Please sign in to comment.