From 8e893ba8bc746199990c2d1d66d46897def3adb5 Mon Sep 17 00:00:00 2001 From: agrippa Date: Sun, 26 Nov 2023 17:57:41 -0500 Subject: [PATCH] ignore plugin for council vote (#1949) --- hooks/useSubmitVote.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hooks/useSubmitVote.ts b/hooks/useSubmitVote.ts index 16cafd9afa..7b2fd28789 100644 --- a/hooks/useSubmitVote.ts +++ b/hooks/useSubmitVote.ts @@ -142,7 +142,7 @@ export const useSubmitVote = () => { tokenOwnerRecordPk, vote, msg, - client, + role === 'community' ? client : undefined, // NOTE: currently FE doesn't support council plugins fully confirmationCallback, voteWeights, relevantDelegators @@ -155,6 +155,7 @@ export const useSubmitVote = () => { queryKey: [connection.cluster, 'ChatMessages'], }) } catch (e) { + console.error(e) notify({ type: 'error', message: e.message }) } finally { if (isNftPlugin) {