From 65963360c5eb0b0e08288e1c24a2d3c116b729af Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Tue, 27 Aug 2024 23:22:49 -0400 Subject: [PATCH] chore: fix type --- apps/login/src/ui/LoginOTP.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/login/src/ui/LoginOTP.tsx b/apps/login/src/ui/LoginOTP.tsx index 6e362b5884f..3a56598fa60 100644 --- a/apps/login/src/ui/LoginOTP.tsx +++ b/apps/login/src/ui/LoginOTP.tsx @@ -8,8 +8,8 @@ import { Spinner } from "./Spinner"; import { useForm } from "react-hook-form"; import { TextInput } from "./Input"; import BackButton from "./BackButton"; -import { Checks } from "@zitadel/proto/zitadel/session/v2/session_service_pb"; -import { Challenges } from "@zitadel/proto/zitadel/session/v2/challenge_pb"; +import { ChecksJson } from "@zitadel/proto/zitadel/session/v2/session_service_pb"; +import { ChallengesJson } from "@zitadel/proto/zitadel/session/v2/challenge_pb"; // either loginName or sessionId must be provided type Props = { @@ -63,7 +63,7 @@ export default function LoginOTP({ }, []); async function updateSessionForOTPChallenge() { - const challenges: Challenges = {}; + const challenges: ChallengesJson = {}; if (method === "email") { challenges.otpEmail = ""; @@ -111,7 +111,7 @@ export default function LoginOTP({ body.authRequestId = authRequestId; } - const checks: Checks = {}; + const checks: ChecksJson = {}; if (method === "sms") { checks.otpSms = { code: values.code }; }