fix: handle case with no lang/uid for langswitcher and footer

This commit is contained in:
Christel Westerberg
2024-06-05 11:24:27 +02:00
parent 512738428e
commit b8982dacf4
5 changed files with 11 additions and 9 deletions

View File

@@ -2,4 +2,4 @@ import { z } from "zod"
import { Lang } from "@/constants/languages"
export const headerInput = z.object({ lang: z.nativeEnum(Lang) })
export const langInput = z.object({ lang: z.nativeEnum(Lang) })