don't say "undefined"

This commit is contained in:
Lea 2023-04-07 23:31:41 +02:00
parent 38bd64cbc2
commit 9685bc5608
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

View file

@ -322,7 +322,7 @@ export default {
'Word filter',
),
embed(
`**Enabled:** ${config?.wordlistEnabled}` + (!config?.wordlistEnabled
`**Enabled:** ${!!config?.wordlistEnabled}` + (!config?.wordlistEnabled
? ''
: `\n**Action:** ${config?.wordlistAction?.action ?? 'LOG'}\n` +
`**Warning message:** ${config?.wordlistAction?.message}\n` +