From f8810d44bc4d3c6ad169c262fbbb1f1d8d72a201 Mon Sep 17 00:00:00 2001 From: Vadim Date: Fri, 8 Feb 2019 16:26:42 +0300 Subject: [PATCH] `RewardByBlock` item only for `Sokol` and `xDai` networks --- src/components/BallotProxyMetadata/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/BallotProxyMetadata/index.js b/src/components/BallotProxyMetadata/index.js index 8ee4c2a..04c5f83 100644 --- a/src/components/BallotProxyMetadata/index.js +++ b/src/components/BallotProxyMetadata/index.js @@ -22,8 +22,10 @@ export class BallotProxyMetadata extends React.Component { /*8*/ { value: '9', label: ballotStore.ProxyBallotType[9] } // RewardByBlock ] - if (getNetworkName(contractsStore.netId).toLowerCase() !== constants.SOKOL) { - options.splice(8) // keep 0-7 items and remove 8th if the network is not Sokol + const networkName = getNetworkName(contractsStore.netId).toLowerCase() + + if (networkName !== constants.SOKOL && networkName !== constants.DAI) { + options.splice(8) // keep 0-7 items and remove 8th if the network is not Sokol or xDai } return (