Skip to content

Commit

Permalink
fix: hasModerator is not a function flash on events-committee.near
Browse files Browse the repository at this point in the history
  • Loading branch information
Tguntenaar committed Oct 30, 2024
1 parent aff479d commit 47929cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {});

Expand Down

0 comments on commit 47929cb

Please sign in to comment.