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:
commit
01f9c97f53
|
@ -22,8 +22,10 @@ export class BallotProxyMetadata extends React.Component {
|
||||||
/*8*/ { value: '9', label: ballotStore.ProxyBallotType[9] } // RewardByBlock
|
/*8*/ { value: '9', label: ballotStore.ProxyBallotType[9] } // RewardByBlock
|
||||||
]
|
]
|
||||||
|
|
||||||
if (getNetworkName(contractsStore.netId).toLowerCase() !== constants.SOKOL) {
|
const networkName = getNetworkName(contractsStore.netId).toLowerCase()
|
||||||
options.splice(8) // keep 0-7 items and remove 8th if the network is not Sokol
|
|
||||||
|
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 (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue