From 5242678b9881e8447de6863b00da52376242c95a Mon Sep 17 00:00:00 2001
From: David Llop <931684+sembrestels@users.noreply.github.com>
Date: Sat, 12 Sep 2020 13:27:27 +0200
Subject: [PATCH] Remove abstain proposal and update blog post link
---
src/components/ConvictionBanner.js | 2 +-
src/components/Metrics.js | 2 +-
src/hooks/useFilterProposals.js | 5 +++--
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/components/ConvictionBanner.js b/src/components/ConvictionBanner.js
index 759e826..98b3eaf 100644
--- a/src/components/ConvictionBanner.js
+++ b/src/components/ConvictionBanner.js
@@ -93,7 +93,7 @@ function ConvictionBanner() {
top: 1px;
}
`}
- href="https://medium.com/commonsstack"
+ href="https://medium.com/commonsstack/cstk-token-holders-can-now-use-conviction-voting-on-xdai-5090fdc3b8ad"
>
Learn more
diff --git a/src/components/Metrics.js b/src/components/Metrics.js
index 4e75cb0..76aa12c 100644
--- a/src/components/Metrics.js
+++ b/src/components/Metrics.js
@@ -207,7 +207,7 @@ const Metrics = React.memo(function Metrics({
symbol="CSTK"
/>
-
+
>
)
diff --git a/src/hooks/useFilterProposals.js b/src/hooks/useFilterProposals.js
index d3810cf..30d77e2 100644
--- a/src/hooks/useFilterProposals.js
+++ b/src/hooks/useFilterProposals.js
@@ -76,12 +76,13 @@ const useFilterProposals = (proposals, myStakes) => {
proposal
)
const proposalTypeStatus = getProposalType(proposal)
-
+ console.log(proposal)
return (
testExecutionFilter(executionFilter, proposalExecutionStatus) &&
testTypeFilter(typeFilter, proposalTypeStatus) &&
testSupportFilter(supportFilter, proposalSupportStatus) &&
- testSearchFilter(proposal.name, textSearch)
+ testSearchFilter(proposal.name, textSearch) &&
+ proposal.id !== '1'
)
}),
[