diff --git a/frontend/src/FirstRun/AuthenticationRequiredModalContent.js b/frontend/src/FirstRun/AuthenticationRequiredModalContent.js index dcc9bdfbf..426d573a5 100644 --- a/frontend/src/FirstRun/AuthenticationRequiredModalContent.js +++ b/frontend/src/FirstRun/AuthenticationRequiredModalContent.js @@ -104,7 +104,7 @@ function AuthenticationRequiredModalContent(props) { type={inputTypes.TEXT} name="username" onChange={onInputChange} - helpTextWarning={username === undefined || username.value === '' ? translate('AuthenticationRequiredUsernameHelpTextWarning') : undefined} + helpTextWarning={username?.value ? undefined : translate('AuthenticationRequiredUsernameHelpTextWarning')} {...username} /> @@ -116,7 +116,7 @@ function AuthenticationRequiredModalContent(props) { type={inputTypes.PASSWORD} name="password" onChange={onInputChange} - helpTextWarning={password === undefined || password.value === '' ? translate('AuthenticationRequiredPasswordHelpTextWarning') : undefined} + helpTextWarning={password?.value ? undefined : translate('AuthenticationRequiredPasswordHelpTextWarning')} {...password} />