From 41b4db004045ef4de71c495932d74c8d1719d915 Mon Sep 17 00:00:00 2001 From: Michael Brusegard <56915010+michaelbrusegard@users.noreply.github.com> Date: Mon, 27 Jan 2025 17:57:09 +0100 Subject: [PATCH] chore: update frontend to pass translations as expected --- src/components/auth/AccountSignInForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/auth/AccountSignInForm.tsx b/src/components/auth/AccountSignInForm.tsx index 14b442e..8081bad 100644 --- a/src/components/auth/AccountSignInForm.tsx +++ b/src/components/auth/AccountSignInForm.tsx @@ -24,7 +24,7 @@ import type { TRPCClientError } from '@/lib/api/types'; function AccountSignInForm() { const router = useRouter(); const t = useTranslations('auth'); - const formSchema = accountSignInSchema(); + const formSchema = accountSignInSchema(useTranslations()); const { isPending, setPending } = usePending(); const signInMutation = api.auth.signIn.useMutation({ onMutate: () => setPending(true),