From b5a9c04e0a02c286e27bcd8d486cc6fcb0899659 Mon Sep 17 00:00:00 2001 From: Seheon Yu Date: Thu, 27 Jun 2024 22:34:04 +0900 Subject: [PATCH] fix: Update MatchingButtons component to enable host to start matching if all users are ready or host --- src/components/molecules/MatchingButtons.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/MatchingButtons.tsx b/src/components/molecules/MatchingButtons.tsx index ea2a4cb7..a45155ff 100644 --- a/src/components/molecules/MatchingButtons.tsx +++ b/src/components/molecules/MatchingButtons.tsx @@ -127,7 +127,7 @@ export const MatchingReadyButton = ({ return matchingMe?.isHost ? ( u.isReady) || isStartMutating} + disabled={!room?.matchingUsers.every((u) => u.isReady || u.isHost) || isStartMutating} onClick={async () => { await start(); router.push('/projects');