Skip to content

Commit

Permalink
fix: un spotlight
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Aug 11, 2023
1 parent 96665b3 commit 9a0b74f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/100ms-web/src/components/TileMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ const SpotlightActions = ({ peerId }) => {
);
const isTileSpotlighted = spotlightPeerId === peerId;

const setSpotlightPeerId = () =>
const setSpotlightPeerId = peer =>
hmsActions.sessionStore
.set(SESSION_STORE_KEY.SPOTLIGHT, peerId)
.set(SESSION_STORE_KEY.SPOTLIGHT, peer)
.catch(err => ToastManager.addToast({ title: err.description }));

return (
Expand Down
4 changes: 2 additions & 2 deletions packages/roomkit-react/src/Prebuilt/components/TileMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ const SpotlightActions = ({ peerId }) => {
const spotlightPeerId = useHMSStore(selectSessionStore(SESSION_STORE_KEY.SPOTLIGHT));
const isTileSpotlighted = spotlightPeerId === peerId;

const setSpotlightPeerId = () =>
const setSpotlightPeerId = peer =>
hmsActions.sessionStore
.set(SESSION_STORE_KEY.SPOTLIGHT, peerId)
.set(SESSION_STORE_KEY.SPOTLIGHT, peer)
.catch(err => ToastManager.addToast({ title: err.description }));

return (
Expand Down

0 comments on commit 9a0b74f

Please sign in to comment.