1
Fork 0

Use undefined instead of null.

This commit is contained in:
Bauke 2023-06-25 13:31:42 +02:00
parent 0542b09e0f
commit 15c5beaecd
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ function hideTopicVotes(data: HideVotesData, currentUser: string): number {
(data.otherTopics && !postedBySelf) ||
(data.ownTopics && postedBySelf)
) {
vote = topic.querySelector(".topic-voting-votes")!;
vote = topic.querySelector(".topic-voting-votes") ?? undefined;
}
if (vote !== undefined) {