Fix lints

Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
Robin Townsend 2021-06-29 22:42:46 -04:00
parent adb5df52a4
commit c0e10218d9
2 changed files with 4 additions and 4 deletions

View file

@ -32,7 +32,7 @@ export default class TextualEvent extends React.Component<IProps> {
public render() {
const text = TextForEvent.textForEvent(this.props.mxEvent, true, this.context?.showHiddenEventsInTimeline);
if (text == null || text.length === 0) return null;
if (!text) return null;
return <div className="mx_TextualEvent">{ text }</div>;
}
}