Skip to content

Commit

Permalink
media access ボタンの disabled 条件に Sora の接続状態を加える
Browse files Browse the repository at this point in the history
  • Loading branch information
tnamao committed Oct 18, 2023
1 parent 196b6c7 commit cc25d70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/DevtoolsPane/MediaAccessButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="col-auto mb-1">
<input
Expand Down

0 comments on commit cc25d70

Please sign in to comment.