`RewardByBlock` item only for `Sokol` and `xDai` networks

This commit is contained in:
Vadim 2019-02-08 16:26:42 +03:00
parent 055d3e4e44
commit f8810d44bc
1 changed files with 4 additions and 2 deletions

View File

@ -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 (