Fix case for no previous bleeding day. Use new getCycleDay API
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user