diff --git a/src/views/Settings.js b/src/views/Settings.js index 4f342ef..baec9c6 100644 --- a/src/views/Settings.js +++ b/src/views/Settings.js @@ -2043,6 +2043,7 @@ export default function Settings({ restreamer = null }) { Token} env={env('srt.token')} disabled={env('srt.token') || !config.srt.enable} @@ -2056,13 +2057,14 @@ export default function Settings({ restreamer = null }) { Passphrase} env={env('srt.passphrase')} disabled={env('srt.passphrase') || !config.srt.enable} value={config.srt.passphrase} onChange={handleChange('srt.passphrase')} inputProps={{ maxLength: 79 }} - error={config.srt.passphrase && config.srt.passphrase.length < 10} + error={(config.srt.passphrase && config.srt.passphrase.length < 10) ? true : false} helperText={ config.srt.passphrase && config.srt.passphrase.length < 10 ? ( Passphrase must be between 10 and 79 characters long