Fixes typo, and removes a redundant line
This commit is contained in:
@@ -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}>
|
||||||
|
|||||||
Reference in New Issue
Block a user