Skip to content

Commit

Permalink
remove unnecessary default check
Browse files Browse the repository at this point in the history
Co-authored-by: pookmish <[email protected]>
  • Loading branch information
rebeccahongsf and pookmish authored Sep 18, 2024
1 parent a7c62d3 commit e866163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/paragraphs/stanford-card/card-paragraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const adjustHeadingType = (size?: "larger" | "smaller", heading: "h2" | "h3" | "
h3: 3,
h4: 2,
}
if (!headingTypes[heading] || !size || size === "default") return ""
if (!headingTypes[heading] || !size) return ""
let type = headingTypes[heading]
if (size === "larger") {
type += 1
Expand Down

0 comments on commit e866163

Please sign in to comment.