diff --git a/components/chart/chart.js b/components/chart/chart.js
index f6da539..ddd8d00 100644
--- a/components/chart/chart.js
+++ b/components/chart/chart.js
@@ -72,7 +72,7 @@ export default class CycleChart extends Component {
'pain',
'note'
].filter((symptomName) => {
- return cycleDaysSortedByDate.some(cycleDay => cycleDay[symptomName])
+ return this.cycleDaysSortedByDate.some(cycleDay => cycleDay[symptomName])
})
const columns = xAxisDates.map(dateString => {
diff --git a/components/home.js b/components/home.js
index 658f809..59d5340 100644
--- a/components/home.js
+++ b/components/home.js
@@ -9,7 +9,7 @@ import { LocalDate, ChronoUnit } from 'js-joda'
import nodejs from 'nodejs-mobile-react-native'
import styles from '../styles/index'
import cycleModule from '../lib/cycle'
-import { requestHash, getOrCreateCycleDay, getBleedingDaysSortedByDate, fillWithMucusDummyData, fillWithCervixDummyData, deleteAll, changeEncryptionAndRestartApp } from '../db'
+import { requestHash, getOrCreateCycleDay, getBleedingDaysSortedByDate, fillWithMucusDummyData, fillWithCervixDummyData, changeEncryptionAndRestartApp } from '../db'
import {bleedingPrediction as labels} from './labels'
export default class Home extends Component {
@@ -84,12 +84,6 @@ export default class Home extends Component {
title="fill with example data for cervix&temp">
-
-
-