mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
formatting fixes
This commit is contained in:
parent
38d0b0ae01
commit
2f4d4ac93a
@ -122,25 +122,35 @@ class Publish extends Component<{}, PublishState> {
|
|||||||
|
|
||||||
// Setting state for all fields
|
// Setting state for all fields
|
||||||
if (hasContent) {
|
if (hasContent) {
|
||||||
this.setState(prevState => ({
|
this.setState(
|
||||||
validationStatus: {
|
prevState => ({
|
||||||
...prevState.validationStatus,
|
validationStatus: {
|
||||||
[this.state.currentStep]: {
|
...prevState.validationStatus,
|
||||||
...prevState.validationStatus[this.state.currentStep],
|
[this.state.currentStep]: {
|
||||||
[name]: true
|
...prevState.validationStatus[
|
||||||
|
this.state.currentStep
|
||||||
|
],
|
||||||
|
[name]: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}),
|
||||||
}), this.runValidation)
|
this.runValidation
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
this.setState(prevState => ({
|
this.setState(
|
||||||
validationStatus: {
|
prevState => ({
|
||||||
...prevState.validationStatus,
|
validationStatus: {
|
||||||
[this.state.currentStep]: {
|
...prevState.validationStatus,
|
||||||
...prevState.validationStatus[this.state.currentStep],
|
[this.state.currentStep]: {
|
||||||
[name]: false
|
...prevState.validationStatus[
|
||||||
|
this.state.currentStep
|
||||||
|
],
|
||||||
|
[name]: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}),
|
||||||
}), this.runValidation)
|
this.runValidation
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user