Skip to content

Commit

Permalink
only display set error flag to owner
Browse files Browse the repository at this point in the history
  • Loading branch information
Orelsanpls committed Aug 12, 2022
1 parent cd1c0b7 commit ddd29ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ProposalActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const ProposalActionsPanel = () => {
governance &&
proposalOwner &&
wallet?.publicKey &&
proposalOwner?.account.governingTokenOwner.equals(wallet.publicKey) &&
(proposal?.account.state === EnhancedProposalState.Succeeded ||
proposal?.account.state === EnhancedProposalState.Executing ||
proposal?.account.state === EnhancedProposalState.ExecutingWithErrors) &&
Expand Down Expand Up @@ -303,7 +304,6 @@ const ProposalActionsPanel = () => {
{canSetFlagToExecutionError && (
<Button
tooltipMessage={setFlagToExecutionErrorTooltipContent}
className="w-1/2"
onClick={handleSetExecutionErrorFlag}
disabled={!connected}
>
Expand Down

0 comments on commit ddd29ab

Please sign in to comment.