From cc25d70ae54086ba387d6c39b923d618eaf496df Mon Sep 17 00:00:00 2001 From: Takeshi NAMAO Date: Wed, 18 Oct 2023 19:20:59 +0900 Subject: [PATCH] =?UTF-8?q?media=20access=20=E3=83=9C=E3=82=BF=E3=83=B3?= =?UTF-8?q?=E3=81=AE=20disabled=20=E6=9D=A1=E4=BB=B6=E3=81=AB=20Sora=20?= =?UTF-8?q?=E3=81=AE=E6=8E=A5=E7=B6=9A=E7=8A=B6=E6=85=8B=E3=82=92=E5=8A=A0?= =?UTF-8?q?=E3=81=88=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DevtoolsPane/MediaAccessButton.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/DevtoolsPane/MediaAccessButton.tsx b/src/components/DevtoolsPane/MediaAccessButton.tsx index d144ce34..9abdb4ad 100644 --- a/src/components/DevtoolsPane/MediaAccessButton.tsx +++ b/src/components/DevtoolsPane/MediaAccessButton.tsx @@ -13,8 +13,9 @@ export const MediaAccessButton: React.FC = () => { dispatch(disposeTestMediaAccess()); }; const connectionStatus = useAppSelector((state) => state.soraContents.connectionStatus); + const sora = useAppSelector((state) => state.soraContents.sora); const localMediaStream = useAppSelector((state) => state.soraContents.localMediaStream); - const disabled = localMediaStream === null && isFormDisabled(connectionStatus); + const disabled = sora !== null || isFormDisabled(connectionStatus); return (