fix: handle possible null value that tsc didnt catch
Some checks failed
/ deploy (push) Failing after 53s

This commit is contained in:
Dariusz Niemczyk 2025-02-20 17:43:21 +01:00
parent 9fc91d9480
commit 53883f4148
No known key found for this signature in database

View file

@ -7,7 +7,7 @@ import { useParams, usePathname } from "next/navigation";
export const LanguageSelector = () => {
const params = useParams<{ locale: Lang }>();
const pathname = usePathname()
const pathname = usePathname() ?? ''
const replacements = {
'pl': 'en',