Skip to content

Commit

Permalink
fix href
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Feb 2, 2024
1 parent 96d5dac commit 80fc578
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/builddao/widget/components/User.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down
2 changes: 1 addition & 1 deletion apps/builddao/widget/components/buttons/Connect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 80fc578

Please sign in to comment.