🔥(frontend) remove default username

Backend defaults username to the user's email, if the frontend
haven't pass an username value.

Remove this useless check.
This commit is contained in:
lebaudantoine
2024-08-02 14:31:53 +02:00
committed by aleb_the_flash
parent 1971f594cf
commit 2416ca1127

View File

@@ -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<LocalUserChoices | null>(null)
@@ -39,7 +39,6 @@ export const Room = () => {
mode={mode}
userConfig={{
...existingUserChoices,
...(skipJoinScreen ? { username: user?.email as string } : {}),
...userConfig,
}}
/>