Skip to content

Commit

Permalink
Quick and dirty sorting for infra (#976)
Browse files Browse the repository at this point in the history
* fix: infra approved proposals to the top, other portals stay the same.

* fix: hasModerator is not a function flash on events-committee.near
  • Loading branch information
Tguntenaar authored Oct 31, 2024
1 parent dded2d9 commit 3ca5000
Show file tree
Hide file tree
Showing 4 changed files with 685 additions and 7 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
Loading

0 comments on commit 3ca5000

Please sign in to comment.