Add Additional Lint Rules (#55)

This commit is contained in:
Steve Faulkner
2020-06-23 10:45:51 -05:00
committed by GitHub
parent 123902e7ee
commit 269ea6a349
45 changed files with 172 additions and 182 deletions

View File

@@ -22,7 +22,7 @@ export class GalleryCardComponent extends React.Component<GalleryCardComponentPr
private attendantsCardSectionTokens: ICardSectionTokens = { childrenGap: 6 };
public render(): JSX.Element {
return this.props.notebookMetadata != null ? (
return this.props.notebookMetadata !== undefined ? (
<Card aria-label="Notebook Card" onClick={this.props.onClick} tokens={this.cardTokens}>
<Card.Item>
<Persona text={this.props.notebookMetadata.author} secondaryText={this.props.notebookMetadata.date} />