MM-26667 Set EMM username as the initial loginId (#4519)

This commit is contained in:
Elias Nahum 2020-07-02 14:27:19 -04:00 committed by GitHub
parent 2ccf2dc716
commit c22d5e69f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -297,7 +297,8 @@ export default class Login extends PureComponent {
setEmmUsernameIfAvailable = async () => {
const managedConfig = await mattermostManaged.getConfig();
if (managedConfig?.username && this.loginRef.current) {
this.loginRef.current.setNativeProps({text: managedConfig?.username});
this.loginRef.current.setNativeProps({text: managedConfig.username});
this.loginId = managedConfig.username;
}
}