From ffff2324fa52abfa1d54266bdfb117fad517b497 Mon Sep 17 00:00:00 2001 From: Christel Westerberg Date: Thu, 22 Aug 2024 10:56:33 +0200 Subject: [PATCH] fix: remove listening to params in not-found, not needed --- app/[lang]/(live)/not-found.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/[lang]/(live)/not-found.tsx b/app/[lang]/(live)/not-found.tsx index 93a118353..b709a17c2 100644 --- a/app/[lang]/(live)/not-found.tsx +++ b/app/[lang]/(live)/not-found.tsx @@ -1,10 +1,6 @@ import { getIntl } from "@/i18n" -import { setLang } from "@/i18n/serverContext" -import { LangParams, PageArgs } from "@/types/params" - -export default async function NotFound({ params }: PageArgs) { - setLang(params.lang) +export default async function NotFound() { const { formatMessage } = await getIntl() return (