chore(prettier): run

This commit is contained in:
David Fischer 2024-11-04 21:35:42 +01:00
parent 2bab23f64e
commit 2aac704812
No known key found for this signature in database
GPG Key ID: F21F2016DEFEC73D
2 changed files with 3 additions and 4 deletions

View File

@ -125,4 +125,4 @@ Quartz can conditionally display the comment box based on a field `comments` in
title: Comments enabled here!
comments: true
---
```
```

View File

@ -28,8 +28,7 @@ function boolToStringBool(b: boolean): string {
export default ((opts: Options) => {
const Comments: QuartzComponent = ({ displayClass, fileData, cfg }: QuartzComponentProps) => {
// check if comments should be displayed according to frontmatter
if ((opts.respectFrontmatter ?? false) &&
!(fileData.frontmatter?.comments ?? false)) {
if ((opts.respectFrontmatter ?? false) && !(fileData.frontmatter?.comments ?? false)) {
return null
}
@ -54,7 +53,7 @@ export default ((opts: Options) => {
}
// make sure we actually need to load the script
if(Comments != null) {
if (Comments != null) {
Comments.afterDOMLoaded = script
}