fix(prejoin): Don't overwrite display name with ''
This commit is contained in:
parent
ab6790bdaa
commit
29f5d87d77
|
@ -24,5 +24,5 @@ export function parseJWTFromURLParams(url: URL = window.location) {
|
|||
export function getJwtName(state: Object) {
|
||||
const { user } = state['features/base/jwt'];
|
||||
|
||||
return user?.name || '';
|
||||
return user?.name;
|
||||
}
|
||||
|
|
|
@ -135,11 +135,13 @@ function _maybeUpdateDisplayName({ dispatch, getState }) {
|
|||
if (hasJwt) {
|
||||
const displayName = getJwtName(state);
|
||||
|
||||
if (displayName) {
|
||||
dispatch(updateSettings({
|
||||
displayName
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the local participant according to settings changes.
|
||||
|
|
Loading…
Reference in New Issue