🔥(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:
committed by
aleb_the_flash
parent
1971f594cf
commit
2416ca1127
@@ -10,7 +10,7 @@ import { Conference } from '../components/Conference'
|
|||||||
import { Join } from '../components/Join'
|
import { Join } from '../components/Join'
|
||||||
|
|
||||||
export const Room = () => {
|
export const Room = () => {
|
||||||
const { user, isLoggedIn } = useUser()
|
const { isLoggedIn } = useUser()
|
||||||
const { userChoices: existingUserChoices } = usePersistentUserChoices()
|
const { userChoices: existingUserChoices } = usePersistentUserChoices()
|
||||||
const [userConfig, setUserConfig] = useState<LocalUserChoices | null>(null)
|
const [userConfig, setUserConfig] = useState<LocalUserChoices | null>(null)
|
||||||
|
|
||||||
@@ -39,7 +39,6 @@ export const Room = () => {
|
|||||||
mode={mode}
|
mode={mode}
|
||||||
userConfig={{
|
userConfig={{
|
||||||
...existingUserChoices,
|
...existingUserChoices,
|
||||||
...(skipJoinScreen ? { username: user?.email as string } : {}),
|
|
||||||
...userConfig,
|
...userConfig,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user