Merge pull request #196 from varasev/RewardByBlock-item

(Feature) Add `RewardByBlock` item to drop-down list on the page `Modify Proxy Contract Ballot` for xDai network
This commit is contained in:
Vadim Arasev 2019-02-12 19:43:25 +03:00 committed by GitHub
commit 01f9c97f53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 (