fix: handle possible null value that tsc didnt catch #22

Merged
palid merged 1 commit from fix/missing-null-check into main 2025-02-20 16:43:54 +00:00

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',