From ddd29ab9ad1c3c8ede59c785d58b12eb6496eb89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20NEUT?= Date: Thu, 21 Jul 2022 17:05:05 +0400 Subject: [PATCH] only display set error flag to owner --- components/ProposalActions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ProposalActions.tsx b/components/ProposalActions.tsx index 4fb2f7ce3c..a8d63f785f 100644 --- a/components/ProposalActions.tsx +++ b/components/ProposalActions.tsx @@ -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) && @@ -303,7 +304,6 @@ const ProposalActionsPanel = () => { {canSetFlagToExecutionError && (