mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-02-04 11:43:19 +02:00
Fixed: User check in Authentication Required modal
This commit is contained in:
parent
610cc91689
commit
33c52a7037
@ -104,7 +104,7 @@ function AuthenticationRequiredModalContent(props) {
|
||||
type={inputTypes.TEXT}
|
||||
name="username"
|
||||
onChange={onInputChange}
|
||||
helpTextWarning={username.value === '' ? translate('AuthenticationRequiredUsernameHelpTextWarning') : undefined}
|
||||
helpTextWarning={username?.value ? undefined : translate('AuthenticationRequiredUsernameHelpTextWarning')}
|
||||
{...username}
|
||||
/>
|
||||
</FormGroup>
|
||||
@ -116,7 +116,7 @@ function AuthenticationRequiredModalContent(props) {
|
||||
type={inputTypes.PASSWORD}
|
||||
name="password"
|
||||
onChange={onInputChange}
|
||||
helpTextWarning={password.value === '' ? translate('AuthenticationRequiredPasswordHelpTextWarning') : undefined}
|
||||
helpTextWarning={password?.value ? undefined : translate('AuthenticationRequiredPasswordHelpTextWarning')}
|
||||
{...password}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user