From c9f4b59bea2b0fa26b59e05eed7a8f36067df763 Mon Sep 17 00:00:00 2001 From: Bhavika Kendaki <110026166+bhavi25@users.noreply.github.com> Date: Mon, 22 Aug 2022 15:53:28 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8Localization=20switch=20code=20form?= =?UTF-8?q?at=20improved=20(#1037)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/pages/news/archive/[...pagePath].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pages/news/archive/[...pagePath].tsx b/web/pages/news/archive/[...pagePath].tsx index adbca4924..e8a4dc845 100644 --- a/web/pages/news/archive/[...pagePath].tsx +++ b/web/pages/news/archive/[...pagePath].tsx @@ -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 (