Skip to content

Commit

Permalink
fix: remove usage of false in component return (#1066)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh authored Sep 30, 2024
1 parent d581f2f commit 609ea8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TextDisplay/withFlavor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const Title = ({
}: {
title?: string;
isAlert?: boolean;
}): JSX.Element | false => {
}): JSX.Element | null => {
if (!title) {
return false;
return null;
}
if (isAlert) {
return (
Expand Down

0 comments on commit 609ea8c

Please sign in to comment.