Use null assertions instead of casting.

This commit is contained in:
Paul
2021-06-21 09:02:38 +01:00
parent d1bff98635
commit 3555e9a7bf
4 changed files with 5 additions and 5 deletions

View File

@@ -132,14 +132,14 @@ function MessageRenderer({ id, state, queue }: Props) {
if (previous) {
compare(
msg.id,
userId as string,
userId!,
previous._id,
previous.author
);
previous = {
_id: msg.id,
data: { author: userId as string }
data: { author: userId! }
} as any;
}