diff --git a/custom/shared/components/HairCheck/HairCheck.js b/custom/shared/components/HairCheck/HairCheck.js index 0b1fa0f..c57c960 100644 --- a/custom/shared/components/HairCheck/HairCheck.js +++ b/custom/shared/components/HairCheck/HairCheck.js @@ -32,8 +32,13 @@ import { useDeepCompareMemo } from 'use-deep-compare'; export const HairCheck = () => { const { callObject, join } = useCallState(); const { localParticipant } = useParticipants(); - const { deviceState, camError, micError, isCamMuted, isMicMuted } = - useMediaDevices(); + const { + deviceState, + camError, + micError, + isCamMuted, + isMicMuted, + } = useMediaDevices(); const { openModal } = useUIState(); const [waiting, setWaiting] = useState(false); const [joining, setJoining] = useState(false); @@ -95,10 +100,9 @@ export const HairCheck = () => { [localParticipant] ); - const isLoading = useMemo( - () => deviceState === DEVICE_STATE_LOADING, - [deviceState] - ); + const isLoading = useMemo(() => deviceState === DEVICE_STATE_LOADING, [ + deviceState, + ]); const hasError = useMemo(() => { if ( @@ -127,6 +131,50 @@ export const HairCheck = () => { } }, [camError]); + const showWaitingMessage = useMemo(() => { + return ( +