From 5e6e764d5ff3159fe48e853792dd678a8e0d3441 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Sun, 16 Jan 2022 22:56:56 -0800 Subject: [PATCH] fixing bug in users not showing up --- components/Modals/CreateRoom.tsx | 2 ++ contexts/teamDashboardContext.tsx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/Modals/CreateRoom.tsx b/components/Modals/CreateRoom.tsx index 2c590a2..af749cf 100644 --- a/components/Modals/CreateRoom.tsx +++ b/components/Modals/CreateRoom.tsx @@ -4,12 +4,14 @@ import { ShowModalType, useKeyboardContext, } from "../../contexts/keyboardContext"; +import { useTeamDashboardContext } from "../../contexts/teamDashboardContext"; const { Option } = Select; const thisModalType = ShowModalType.createRoom; export default function CreateRoomModal() { + const { teamUsers } = useTeamDashboardContext(); const { pastedLink, handleModalType, showModalType } = useKeyboardContext(); useEffect(() => { diff --git a/contexts/teamDashboardContext.tsx b/contexts/teamDashboardContext.tsx index 72e92e4..1ac5597 100644 --- a/contexts/teamDashboardContext.tsx +++ b/contexts/teamDashboardContext.tsx @@ -303,8 +303,8 @@ export function TeamDashboardContextProvider({ children }) { ...value, allMessages, messagesByTeamMate, - ...teamUsers, - ...teamUsersMap, + teamUsers, + teamUsersMap, }; return (