Use truthiness for the literal-typed feed URL check
validate / validate (push) Successful in 24s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Compleet
2026-07-14 14:11:22 +01:00
parent f15bddc5d3
commit e8403dbfb4
+1 -1
View File
@@ -12,7 +12,7 @@ const [stories, briefings, episodes, guides] = await Promise.all([
const visibleNavigation = navigation.filter((item) => {
if (item.href === '/stories') return stories.length > 0;
if (item.href === '/briefing') return briefings.length > 0;
if (item.href === '/podcast') return episodes.length > 0 || site.podcastFeedUrl !== '';
if (item.href === '/podcast') return episodes.length > 0 || Boolean(site.podcastFeedUrl);
if (item.href === '/guides') return guides.length > 0;
if (item.href === '/book') return site.book.enabled;
return true;