SMYN: Fix author undefined. (#528)
This commit is contained in:
parent
62569ef3be
commit
b6d8728b64
1 changed files with 1 additions and 1 deletions
|
|
@ -267,7 +267,7 @@ function getProcessedNames(author: any, truncateAllNamesWithStreamerMode: boolea
|
|||
? friendName[0] + "..."
|
||||
: friendName as string;
|
||||
|
||||
const customName: string | null = customNicknames[author.id] || null;
|
||||
const customName: string | null = !author?.id ? null : customNicknames[author.id] || null;
|
||||
const custom: string | null = !customName ? null
|
||||
: StreamerModeStore.enabled && (truncateAllNamesWithStreamerMode || customName.toLowerCase() === author.username.toLowerCase())
|
||||
? customName[0] + "..."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue