mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
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:
parent
2dba1d0504
commit
272cc6905e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user