From b79471b30d8ebad7852577bd693578727e2c3a04 Mon Sep 17 00:00:00 2001 From: adrianvrj Date: Tue, 17 Dec 2024 21:59:10 -0600 Subject: [PATCH 1/2] [fix] validating user not connected to fetch details --- frontend/gostarkme-web/components/modules/Fund/Fund.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/gostarkme-web/components/modules/Fund/Fund.tsx b/frontend/gostarkme-web/components/modules/Fund/Fund.tsx index b723ac7..76fa895 100644 --- a/frontend/gostarkme-web/components/modules/Fund/Fund.tsx +++ b/frontend/gostarkme-web/components/modules/Fund/Fund.tsx @@ -48,7 +48,7 @@ const Fund = () => { let evidenceLink = await fundContract.get_evidence_link(); let contactHandle = await fundContract.get_contact_handle(); // Fetch owner - setIsOwner(await fundContract.is_owner(wallet?.account.address)); + setIsOwner(await fundContract.is_owner(wallet != undefined ? wallet.account.address : "0x00000000")); // USER VOTED? let voted = await fundContract.get_voter(wallet != undefined ? wallet?.account.address : "0x0000000000"); From fa7646368432ebf96acec98d9f71ef28d0b3be49 Mon Sep 17 00:00:00 2001 From: adrianvrj Date: Tue, 17 Dec 2024 22:01:11 -0600 Subject: [PATCH 2/2] Update Fund.tsx --- frontend/gostarkme-web/components/modules/Fund/Fund.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/gostarkme-web/components/modules/Fund/Fund.tsx b/frontend/gostarkme-web/components/modules/Fund/Fund.tsx index 76fa895..be4f5e9 100644 --- a/frontend/gostarkme-web/components/modules/Fund/Fund.tsx +++ b/frontend/gostarkme-web/components/modules/Fund/Fund.tsx @@ -48,7 +48,7 @@ const Fund = () => { let evidenceLink = await fundContract.get_evidence_link(); let contactHandle = await fundContract.get_contact_handle(); // Fetch owner - setIsOwner(await fundContract.is_owner(wallet != undefined ? wallet.account.address : "0x00000000")); + setIsOwner(await fundContract.is_owner(wallet != undefined ? wallet?.account.address : "0x00000000")); // USER VOTED? let voted = await fundContract.get_voter(wallet != undefined ? wallet?.account.address : "0x0000000000");