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
|
||||
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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user