Fixes typo, and removes a redundant line

This commit is contained in:
Sofiya Tepikin
2019-11-15 17:52:12 +01:00
parent 7514b01cf4
commit e14bd690dc
+2 -3
View File
@@ -46,7 +46,6 @@ class DayColumn extends Component {
this.symptomColorMethods[symptom] || this.symptomColorMethods[symptom] ||
this.symptomColorMethods['default'] this.symptomColorMethods['default']
getSymptomColorIndex(symptomData)
symptomDataToDisplay[symptom] = getSymptomColorIndex(symptomData) symptomDataToDisplay[symptom] = getSymptomColorIndex(symptomData)
} }
} }
@@ -140,7 +139,7 @@ class DayColumn extends Component {
return false return false
} }
drawSypmtom = (symptom) => { drawSymptom = (symptom) => {
const { symptomHeight } = this.props const { symptomHeight } = this.props
const shouldDrawSymptom = this.data.hasOwnProperty(symptom) const shouldDrawSymptom = this.data.hasOwnProperty(symptom)
@@ -265,7 +264,7 @@ class DayColumn extends Component {
activeOpacity={1} activeOpacity={1}
> >
<View> <View>
{symptomRowSymptoms.map(symptom => this.drawSypmtom(symptom))} {symptomRowSymptoms.map(symptom => this.drawSymptom(symptom))}
</View> </View>
<Surface width={config.columnWidth} height={columnHeight}> <Surface width={config.columnWidth} height={columnHeight}>