fix(comments): properly check if comments is in frontmatter (#1627)
| | |
| | | const Comments: QuartzComponent = ({ displayClass, fileData, cfg }: QuartzComponentProps) => { |
| | | // check if comments should be displayed according to frontmatter |
| | | const disableComment: boolean = |
| | | !fileData.frontmatter?.comments || fileData.frontmatter?.comments === "false" |
| | | typeof fileData.frontmatter?.comments !== "undefined" && |
| | | (!fileData.frontmatter?.comments || fileData.frontmatter?.comments === "false") |
| | | if (disableComment) { |
| | | return <></> |
| | | } |