Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Mar 12, 2024
1 parent 8d1040d commit 51e1491
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/astraplusplus/widget/CreateDAO/Step6.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ State.init({

function onGroupChange(name) {
const item = initialAnswers.policy.roles.find((i) => i.name === name);
const voteWeight = item?.vote_policy.threshold ?? [1, 2];
const voteWeight = item?.vote_policy?.add_bounty?.threshold ?? [1, 2];
State.update({
selectedGroup: name,
voteWeight: parseInt((voteWeight?.[0] / voteWeight?.[1]) * 100),
Expand Down
3 changes: 2 additions & 1 deletion apps/astraplusplus/widget/DAO/Settings/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ const hasPermission = (proposalKind) => {
if (roleObj) {
return (
roleObj.permissions.includes(`${proposalKind}:*`) ||
roleObj.permissions.includes("*:*")
roleObj.permissions.includes("*:*") ||
roleObj.permissions.includes(`${proposalKind}:AddProposal`)
);
} else {
return false;
Expand Down

0 comments on commit 51e1491

Please sign in to comment.