Merge pull request #152 from varasev/minor-fixes
(Fix) Minor bugs found
This commit is contained in:
commit
2d4e12d008
|
@ -15,7 +15,7 @@ export class BallotKeysMetadata extends React.Component {
|
|||
}
|
||||
}
|
||||
let newVotingPayoutKeys = '';
|
||||
if (ballotStore.isNewValidatorPersonalData && contractsStore.votingToChangeKeys.doesMethodExist('createBallotToAddNewValidator')) {
|
||||
if (ballotStore.isNewValidatorPersonalData && contractsStore.votingToChangeKeys && contractsStore.votingToChangeKeys.doesMethodExist('createBallotToAddNewValidator')) {
|
||||
newVotingPayoutKeys = <div>
|
||||
<div className="left">
|
||||
<div className="form-el">
|
||||
|
|
|
@ -18,7 +18,7 @@ export class BallotProxyMetadata extends React.Component {
|
|||
/*7*/ { value: '8', label: ballotStore.ProxyBallotType[8] }, // ProxyStorage
|
||||
];
|
||||
|
||||
if (!contractsStore.proxyStorage.doesMethodExist('getValidatorMetadata')) {
|
||||
if (!contractsStore.proxyStorage || !contractsStore.proxyStorage.doesMethodExist('getValidatorMetadata')) {
|
||||
options.splice(6); // keep 0-5 and remove 6-... items if ProxyStorage is old
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue