fix nullability
This commit is contained in:
parent
b8fde212ad
commit
ea9c3239e5
|
@ -7,5 +7,5 @@ import { MiUser } from '@/models/User.js';
|
|||
import { MiNote } from '@/models/Note.js';
|
||||
|
||||
export function isReply(note: MiNote, viewerId?: MiUser['id'] | undefined | null): boolean {
|
||||
return note.replyId && note.replyUserId !== note.userId && note.replyUserId !== viewerId;
|
||||
return note.replyId !== undefined && note.replyUserId !== note.userId && note.replyUserId !== viewerId;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue