diff --git a/docs/javascript/v2/quickstart/mental-model.mdx b/docs/javascript/v2/quickstart/mental-model.mdx index d1259859c1..9f97454f1b 100644 --- a/docs/javascript/v2/quickstart/mental-model.mdx +++ b/docs/javascript/v2/quickstart/mental-model.mdx @@ -80,7 +80,7 @@ function MuteButton() { let muted = false; // state const button = getButtonIcon("unmutedAudio"); button.onClick = () => { // handling action - muted = !!muted; // toggle the state when clicked + muted = !muted; // toggle the state when clicked broadcastNewMuteState(muted); // tell others in the room about the change // change the icon per the state button.setIcon(muted ? "mutedAudio" : "unmutedAudio");