Pass in symptoms as flat properties, not object

This commit is contained in:
Julia Friesel
2018-09-17 20:24:28 +02:00
parent 44c51225e6
commit 03022ffa88
2 changed files with 12 additions and 12 deletions
+2 -1
View File
@@ -62,6 +62,7 @@ export default class CycleChart extends Component {
jsDate.getDate()
).toString()
})
const chartSymptoms = [
'bleeding',
'temperature',
@@ -103,7 +104,7 @@ export default class CycleChart extends Component {
return {
dateString,
y: temp ? normalizeToScale(temp, columnHeight) : null,
symptoms,
...symptoms,
...getFhmAndLtlInfo(dateString, temp, columnHeight)
}
})