From 97043ebe4c48aed57adbfda54bc76f81021bf0ca Mon Sep 17 00:00:00 2001 From: agrippa kellum Date: Sun, 26 Nov 2023 17:47:21 -0500 Subject: [PATCH 1/2] ignore plugin for council vote --- hooks/useSubmitVote.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/useSubmitVote.ts b/hooks/useSubmitVote.ts index 16cafd9afa..f2c409bfe3 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 From 066b157829e72dd710118bc436740767bfd20500 Mon Sep 17 00:00:00 2001 From: agrippa kellum Date: Sun, 26 Nov 2023 17:55:59 -0500 Subject: [PATCH 2/2] console err for voting issues --- hooks/useSubmitVote.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/hooks/useSubmitVote.ts b/hooks/useSubmitVote.ts index f2c409bfe3..7b2fd28789 100644 --- a/hooks/useSubmitVote.ts +++ b/hooks/useSubmitVote.ts @@ -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) {