fix: handle possible null value that tsc didnt catch
Some checks failed
/ deploy (push) Failing after 53s
Some checks failed
/ deploy (push) Failing after 53s
This commit is contained in:
parent
9fc91d9480
commit
53883f4148
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue