Skip to content

Commit

Permalink
Print console.error on createProposal errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xavikh committed Mar 27, 2024
1 parent 3b1b116 commit 7d411d5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/dualGovernance/hooks/useProposalVeto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function useProposalVeto(proposalId: string) {
timeout: 4 * 1000,
});
} else {
console.error(vetoingError);
addAlert("Could not create the proposal", { type: "error" });
}
return;
Expand Down
1 change: 1 addition & 0 deletions plugins/dualGovernance/pages/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default function Create() {
timeout: 4 * 1000,
});
} else {
console.error(error);
addAlert("Could not create the proposal", { type: "error" });
}
return;
Expand Down
1 change: 1 addition & 0 deletions plugins/lockToVote/hooks/useProposalVeto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export function useProposalVeto(proposalId: string) {
timeout: 4 * 1000,
});
} else {
console.error(vetoingError);
addAlert("Could not create the veto", { type: "error" });
}
return;
Expand Down
1 change: 1 addition & 0 deletions plugins/lockToVote/pages/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default function Create() {
timeout: 4 * 1000,
});
} else {
console.error(error);
addAlert("Could not create the proposal", { type: "error" });
}
return;
Expand Down
1 change: 1 addition & 0 deletions plugins/tokenVoting/hooks/useProposalVoting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export function useProposalVoting(proposalId: string) {
timeout: 4 * 1000,
});
} else {
console.error(votingError);
addAlert("Could not create the proposal", { type: "error" });
}
return;
Expand Down
1 change: 1 addition & 0 deletions plugins/tokenVoting/pages/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default function Create() {
timeout: 4 * 1000,
});
} else {
console.error(error);
addAlert("Could not create the proposal", { type: "error" });
}
return;
Expand Down

0 comments on commit 7d411d5

Please sign in to comment.