Pull steps from actual available steps (#4848)
This commit is contained in:
parent
ca963137e9
commit
8edee76f8b
@ -142,12 +142,13 @@ class DeployContract extends Component {
|
|||||||
render () {
|
render () {
|
||||||
const { step, deployError, rejected, inputs } = this.state;
|
const { step, deployError, rejected, inputs } = this.state;
|
||||||
|
|
||||||
const realStep = Object.keys(STEPS).findIndex((k) => k === step);
|
const realStepKeys = deployError || rejected
|
||||||
const realSteps = deployError || rejected
|
? []
|
||||||
? null
|
: Object.keys(STEPS).filter((k) => k !== 'CONTRACT_PARAMETERS' || inputs.length > 0);
|
||||||
: Object.keys(STEPS)
|
const realStep = realStepKeys.findIndex((k) => k === step);
|
||||||
.filter((k) => k !== 'CONTRACT_PARAMETERS' || inputs.length > 0)
|
const realSteps = realStepKeys.length
|
||||||
.map((k) => STEPS[k]);
|
? realStepKeys.map((k) => STEPS[k])
|
||||||
|
: null;
|
||||||
|
|
||||||
const title = realSteps
|
const title = realSteps
|
||||||
? null
|
? null
|
||||||
|
Loading…
Reference in New Issue
Block a user