interface: no nullish assignment

Typescript as of 3.7 understands null coalescing (??), but nullish
assignment (??=) is not available until 4.0.

This broke `npm run tsc`, preventing other type errors from showing up.
This commit is contained in:
Jōshin 2021-04-06 18:05:55 +00:00
parent 2dba1d0504
commit 272cc6905e
No known key found for this signature in database
GPG Key ID: A8BE5A9A521639D0

View File

@ -284,8 +284,7 @@ class ChatMessage extends Component<ChatMessageProps> {
hideHover
} = this.props;
let onReply = this.props?.onReply;
onReply ??= () => {};
let onReply = this.props?.onReply ?? (() => {});
const transcluded = this.props?.transcluded ?? 0;
let { renderSigil } = this.props;