don't say "undefined"

This commit is contained in:
Lea 2023-04-07 23:31:41 +02:00
parent 38bd64cbc2
commit 9685bc5608
No known key found for this signature in database
GPG key ID: 1BAFFE8347019C42

View file

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