Skip to content

Commit

Permalink
Check current locale when checking public stories
Browse files Browse the repository at this point in the history
  • Loading branch information
kudlajz committed Feb 8, 2024
1 parent 832ae5f commit b4a076a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function Header({ localeCode }: Props) {
const categories = await app().categories();
const displayedCategories = await app().translatedCategories(
localeCode,
categories.filter((category) => category.public_stories_number > 0),
categories.filter((category) => category.i18n[localeCode]?.public_stories_number > 0),
);

const algoliaSettings =
Expand Down

0 comments on commit b4a076a

Please sign in to comment.