From 2416ca112707f5882cb81b7dc08023fb87b366c9 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 2 Aug 2024 14:31:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5(frontend)=20remove=20default=20use?= =?UTF-8?q?rname?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backend defaults username to the user's email, if the frontend haven't pass an username value. Remove this useless check. --- src/frontend/src/features/rooms/routes/Room.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/src/features/rooms/routes/Room.tsx b/src/frontend/src/features/rooms/routes/Room.tsx index eef3184a..eb4a531a 100644 --- a/src/frontend/src/features/rooms/routes/Room.tsx +++ b/src/frontend/src/features/rooms/routes/Room.tsx @@ -10,7 +10,7 @@ import { Conference } from '../components/Conference' import { Join } from '../components/Join' export const Room = () => { - const { user, isLoggedIn } = useUser() + const { isLoggedIn } = useUser() const { userChoices: existingUserChoices } = usePersistentUserChoices() const [userConfig, setUserConfig] = useState(null) @@ -39,7 +39,6 @@ export const Room = () => { mode={mode} userConfig={{ ...existingUserChoices, - ...(skipJoinScreen ? { username: user?.email as string } : {}), ...userConfig, }} />