From c7897b16c4989e33575ff0615c43d772aff6a3fd Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 28 Jun 2018 08:21:34 -0400 Subject: [PATCH 1/2] Disabling voting if no SNT balance --- app/components/simple-voting/PollsList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/simple-voting/PollsList.js b/app/components/simple-voting/PollsList.js index 57894ee..fa714cd 100644 --- a/app/components/simple-voting/PollsList.js +++ b/app/components/simple-voting/PollsList.js @@ -79,7 +79,7 @@ class Poll extends Component { balance, votes } = this.state; - const disableVote = !_canVote || isSubmitting; + const disableVote = balance == 0 || !_canVote || isSubmitting; const maxValue = Math.floor(Math.sqrt(balance)); return ( From 0ecd741382474efcb36dd8d34c09dc68540bfe3d Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 28 Jun 2018 09:19:31 -0400 Subject: [PATCH 2/2] Disabling IPFS --- config/storage.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/storage.json b/config/storage.json index b286558..45bc9d5 100644 --- a/config/storage.json +++ b/config/storage.json @@ -3,7 +3,7 @@ "versions": { "ipfs-api": "17.2.4" }, - "enabled": true, + "enabled": false, "ipfs_bin": "ipfs", "provider": "ipfs", "available_providers": ["ipfs"], @@ -11,7 +11,7 @@ "port": 5001 }, "development": { - "enabled": true, + "enabled": false, "provider": "ipfs", "host": "localhost", "port": 5001,