Adds linter rule for no multi spaces
This commit is contained in:
@@ -41,7 +41,7 @@ class Bleeding extends Component {
|
||||
autoSave = () => {
|
||||
const { date } = this.props
|
||||
const valuesToSave = { ...this.state }
|
||||
const hasValueToSave = typeof this.state.value === 'number'
|
||||
const hasValueToSave = typeof this.state.value === 'number'
|
||||
saveSymptom(this.symptom, date, hasValueToSave ? valuesToSave : null)
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ class Desire extends Component {
|
||||
autoSave = () => {
|
||||
const { date } = this.props
|
||||
const valuesToSave = { ...this.state }
|
||||
const hasValueToSave = typeof this.state.value === 'number'
|
||||
const hasValueToSave = typeof this.state.value === 'number'
|
||||
saveSymptom(this.symptom, date, hasValueToSave ? valuesToSave : null)
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ class SymptomView extends Component {
|
||||
return this.values[key] || this.values[key] === 0
|
||||
}
|
||||
|
||||
const valuesKeys = Object.keys(this.values)
|
||||
const valuesKeys = Object.keys(this.values)
|
||||
|
||||
return valuesKeys.some(valueHasBeenFilledOut)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user