From 47929cbca8b97b9de5d266de51acbc1ebafb52ce Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 30 Oct 2024 15:40:02 -0500 Subject: [PATCH] fix: hasModerator is not a function flash on events-committee.near --- .../widget/devhub/components/organism/Navbar.jsx | 6 +++--- .../widget/devhub/components/organism/Navbar.jsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/instances/devhub.near/widget/devhub/components/organism/Navbar.jsx b/instances/devhub.near/widget/devhub/components/organism/Navbar.jsx index a5ed91d5a..90a237d84 100644 --- a/instances/devhub.near/widget/devhub/components/organism/Navbar.jsx +++ b/instances/devhub.near/widget/devhub/components/organism/Navbar.jsx @@ -4,9 +4,9 @@ const [showMenu, setShowMenu] = useState(false); const { href: linkHref } = VM.require("${REPL_DEVHUB}/widget/core.lib.url"); -const { hasModerator } = - VM.require("${REPL_DEVHUB}/widget/core.adapter.devhub-contract") || - (() => {}); +const { hasModerator } = VM.require( + "${REPL_DEVHUB}/widget/core.adapter.devhub-contract" +) || { hasModerator: () => {} }; linkHref || (linkHref = () => {}); diff --git a/instances/events-committee.near/widget/devhub/components/organism/Navbar.jsx b/instances/events-committee.near/widget/devhub/components/organism/Navbar.jsx index d5e3e37c9..330e4aaaf 100644 --- a/instances/events-committee.near/widget/devhub/components/organism/Navbar.jsx +++ b/instances/events-committee.near/widget/devhub/components/organism/Navbar.jsx @@ -4,9 +4,9 @@ const [showMenu, setShowMenu] = useState(false); const { href: linkHref } = VM.require("${REPL_DEVHUB}/widget/core.lib.url"); -const { hasModerator } = - VM.require("${REPL_EVENTS}/widget/core.adapter.devhub-contract") || - (() => {}); +const { hasModerator } = VM.require( + "${REPL_EVENTS}/widget/core.adapter.devhub-contract" +) || { hasModerator: () => {} }; linkHref || (linkHref = () => {});