Skip to content

Commit 745ba09

Browse files
committed
Endrer til å bruke nullish coalescing for sjekk av dato
1 parent 42d59f0 commit 745ba09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/_common/headers/featured-header/FeaturedHeader.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const FeaturedHeader = ({ contentProps }: Props) => {
1919
const { language } = usePageContentProps();
2020
const pageTitle = data.title || displayName;
2121

22-
const publishFrom = publish?.from || createdTime;
22+
const publishFrom = publish?.from ?? createdTime;
2323
const getFeaturedTranslations = translator('currentTopic', language);
2424

2525
const tagLineLabel = getFeaturedTranslations('tag');

0 commit comments

Comments
 (0)