Fixed: User check in Authentication Required modal

This commit is contained in:
Bogdan 2023-08-29 23:13:50 +03:00 committed by GitHub
parent 610cc91689
commit 33c52a7037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ function AuthenticationRequiredModalContent(props) {
type={inputTypes.TEXT} type={inputTypes.TEXT}
name="username" name="username"
onChange={onInputChange} onChange={onInputChange}
helpTextWarning={username.value === '' ? translate('AuthenticationRequiredUsernameHelpTextWarning') : undefined} helpTextWarning={username?.value ? undefined : translate('AuthenticationRequiredUsernameHelpTextWarning')}
{...username} {...username}
/> />
</FormGroup> </FormGroup>
@ -116,7 +116,7 @@ function AuthenticationRequiredModalContent(props) {
type={inputTypes.PASSWORD} type={inputTypes.PASSWORD}
name="password" name="password"
onChange={onInputChange} onChange={onInputChange}
helpTextWarning={password.value === '' ? translate('AuthenticationRequiredPasswordHelpTextWarning') : undefined} helpTextWarning={password?.value ? undefined : translate('AuthenticationRequiredPasswordHelpTextWarning')}
{...password} {...password}
/> />
</FormGroup> </FormGroup>