`RewardByBlock` item only for `Sokol` and `xDai` networks
This commit is contained in:
parent
055d3e4e44
commit
f8810d44bc
|
@ -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