Tidier syntax

Co-authored-by: Robin <robin@robin.town>
This commit is contained in:
David Baker
2023-09-07 13:16:40 +01:00
committed by GitHub
parent 00f14c9814
commit 38bb2895db

View File

@@ -190,8 +190,7 @@ export function InCallView({
containerRef1,
toggleMicrophone,
toggleCamera,
(muted) =>
muteStates?.audio?.setEnabled && muteStates.audio.setEnabled(!muted)
(muted) => muteStates.audio.setEnabled?.(!muted)
);
const onDisconnected = useCallback(