Skip to content

Commit

Permalink
fix snippet (#1675)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored Jul 24, 2023
1 parent d498f72 commit d5610c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/javascript/v2/quickstart/mental-model.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

1 comment on commit d5610c0

@vercel
Copy link

@vercel vercel bot commented on d5610c0 Jul 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.