Resolve "Chart"

This commit is contained in:
Maria Zadnepryanets
2020-12-05 10:15:12 +00:00
parent 59ee05eb1f
commit cf63fbb37c
5 changed files with 26 additions and 15 deletions
+2 -1
View File
@@ -104,10 +104,11 @@ class DayColumn extends Component {
date={dateString}
/>
{ symptomRowSymptoms.map(symptom => {
{ symptomRowSymptoms.map((symptom, i) => {
const hasSymptomData = this.data.hasOwnProperty(symptom)
return (
<SymptomCell
index={i}
key={symptom}
symptom={symptom}
symptomValue={hasSymptomData && this.data[symptom]}