Skip to content

Commit

Permalink
fix: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed Jan 3, 2024
1 parent 9a7039a commit e90f5a9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { defaultMedia, vbPlugin } from './constants';
const iconDims = { height: '40px', width: '40px' };
const MAX_RETRIES = 2;

export const VBPicker = ({ background_media = [] }: VirtualBackground = {}) => {
export const VBPicker = ({ background_media: backgroundMedia = [] }: VirtualBackground = {}) => {
const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
const hmsActions = useHMSActions();
const role = useHMSStore(selectLocalPeerRole);
Expand All @@ -46,8 +46,8 @@ export const VBPicker = ({ background_media = [] }: VirtualBackground = {}) => {
const roomState = useHMSStore(selectRoomState);
const isLargeRoom = useHMSStore(selectIsLargeRoom);
const addedPluginToVideoTrack = useRef(false);
const mediaList = background_media.length
? background_media.map((media: VirtualBackgroundMedia) => media?.url)
const mediaList = backgroundMedia.length
? backgroundMedia.map((media: VirtualBackgroundMedia) => media?.url)
: defaultMedia;

const inPreview = roomState === HMSRoomState.Preview;
Expand Down

0 comments on commit e90f5a9

Please sign in to comment.