Skip to content

Commit

Permalink
🎨Localization switch code format improved (#1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavi25 committed Aug 22, 2022
1 parent dd97b17 commit c9f4b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/pages/news/archive/[...pagePath].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ OldArchivedNewsPage.getLayout = (page: AppProps) => {
const slugData =
data?.archivedItems?.map((data: PathType) => ({
slug: data['slug'],
lang: data['locale'] == 'en' ? 'en_GB' : 'nb_NO',
lang: data['locale'] === 'en' ? 'en_GB' : 'nb_NO',
})) ?? []

return (
Expand Down

0 comments on commit c9f4b59

Please sign in to comment.