From 1a0a5bcd29d7f7a747293796075d732f2a363921 Mon Sep 17 00:00:00 2001 From: jipstavenuiter Date: Fri, 20 Oct 2023 18:50:08 +0200 Subject: [PATCH] fix build --- .../zuconnect-retroactive-fund/more-information-modal.tsx | 2 +- pages/api/auth/login.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/zuconnect-retroactive-fund/more-information-modal.tsx b/components/zuconnect-retroactive-fund/more-information-modal.tsx index 2ca97d5..12f4cd2 100644 --- a/components/zuconnect-retroactive-fund/more-information-modal.tsx +++ b/components/zuconnect-retroactive-fund/more-information-modal.tsx @@ -13,7 +13,7 @@ import { UnorderedList, VStack, } from "@chakra-ui/react"; -import { SAFE_ADDRESS } from "@/components/zuconnect-retroactive-fund/index"; +import { SAFE_ADDRESS } from "@/components/zuconnect-retroactive-fund/donation-form"; export const MoreInformationModal = ({ ...modalProps diff --git a/pages/api/auth/login.ts b/pages/api/auth/login.ts index 8857537..7416192 100644 --- a/pages/api/auth/login.ts +++ b/pages/api/auth/login.ts @@ -63,7 +63,8 @@ export default async function handler( // 3. verify the nonce included in the request matches what's // already in public.users table for that address - const userNonce = user.auth.genNonce; + // @ts-ignore + const userNonce = user.auth?.genNonce; if (userNonce !== nonce) { return res.status(401).json({ error: "Invalid nonce" }); }