1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

formatting fixes

This commit is contained in:
Matthias Kretschmann 2019-03-01 12:57:09 -03:00
parent 38d0b0ae01
commit 2f4d4ac93a
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -122,25 +122,35 @@ class Publish extends Component<{}, PublishState> {
// Setting state for all fields
if (hasContent) {
this.setState(prevState => ({
validationStatus: {
...prevState.validationStatus,
[this.state.currentStep]: {
...prevState.validationStatus[this.state.currentStep],
[name]: true
this.setState(
prevState => ({
validationStatus: {
...prevState.validationStatus,
[this.state.currentStep]: {
...prevState.validationStatus[
this.state.currentStep
],
[name]: true
}
}
}
}), this.runValidation)
}),
this.runValidation
)
} else {
this.setState(prevState => ({
validationStatus: {
...prevState.validationStatus,
[this.state.currentStep]: {
...prevState.validationStatus[this.state.currentStep],
[name]: false
this.setState(
prevState => ({
validationStatus: {
...prevState.validationStatus,
[this.state.currentStep]: {
...prevState.validationStatus[
this.state.currentStep
],
[name]: false
}
}
}
}), this.runValidation)
}),
this.runValidation
)
}
}