From 80fc57847f86a25a1e421270f126e50a20a0fb1b Mon Sep 17 00:00:00 2001 From: Elliot Braem <16282460+elliotBraem@users.noreply.github.com> Date: Thu, 1 Feb 2024 23:25:51 -0700 Subject: [PATCH] fix href --- apps/builddao/widget/components/User.jsx | 4 +++- apps/builddao/widget/components/buttons/Connect.jsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/builddao/widget/components/User.jsx b/apps/builddao/widget/components/User.jsx index 9f5a99e4..935b9053 100644 --- a/apps/builddao/widget/components/User.jsx +++ b/apps/builddao/widget/components/User.jsx @@ -46,7 +46,9 @@ const Wrapper = styled.div` } `; -const { href } = VM.require("buildhub.near/widget/lib.url") || (() => {}); +const { href } = VM.require("buildhub.near/widget/lib.url") || { + href: () => {}, +}; const accountId = props.accountId; const name = props.name || Social.get(`${accountId}/profile/name`); diff --git a/apps/builddao/widget/components/buttons/Connect.jsx b/apps/builddao/widget/components/buttons/Connect.jsx index a76a244e..cf2565c3 100644 --- a/apps/builddao/widget/components/buttons/Connect.jsx +++ b/apps/builddao/widget/components/buttons/Connect.jsx @@ -127,7 +127,7 @@ const Container = styled.div` `; const { href: linkHref } = - VM.require("buildhub.near/widget/lib.url") || (() => {}); + VM.require("buildhub.near/widget/lib.url") || { href: () => {} }; const Component = () => { if (data.isDaoMember || isConnected) {