Fix case for no previous bleeding day. Use new getCycleDay API

This commit is contained in:
Julia Friesel
2018-06-09 12:47:57 +02:00
parent 5b406848cb
commit a56ee7df38
4 changed files with 32 additions and 23 deletions
+2 -2
View File
@@ -8,9 +8,9 @@ import styles from './styles'
import { formatDateForViewHeader } from './format'
import { bleeding as labels} from './labels'
import cycleDayModule from './get-cycle-day-number'
import { getCycleDaysSortedByDateView } from './db'
import { bleedingDaysSortedByDate } from './db'
const getCycleDay = cycleDayModule(getCycleDaysSortedByDateView())
const getCycleDay = cycleDayModule(bleedingDaysSortedByDate)
export default class DayView extends Component {
constructor(props) {