Change getCycleDayNumber signature and some PR improvements

This commit is contained in:
Julia Friesel
2018-06-11 14:03:45 +02:00
parent f98a60192b
commit ab1ed96966
5 changed files with 21 additions and 23 deletions
+2 -3
View File
@@ -9,13 +9,12 @@ import cycleDayModule from './get-cycle-day-number'
import { bleedingDaysSortedByDate, deleteAll } from './db'
import { LocalDate } from 'js-joda'
const getCycleDayNumber = cycleDayModule(bleedingDaysSortedByDate)
const getCycleDayNumber = cycleDayModule()
export default class Home extends Component {
constructor(props) {
super(props)
const now = new Date()
this.todayDateString = LocalDate.of(now.getFullYear(), now.getMonth() + 1, now.getDate()).toString()
this.todayDateString = LocalDate.now().toString()
const cycleDayNumber = getCycleDayNumber(this.todayDateString)
this.state = {