Add mood category to chart

This commit is contained in:
mashazyu authored and Sofiya Tepikin committed 2019-01-30 01:44:51 +03:00
1 parent 56f5c92f87
commit 570d0dc608
5 files changed
+27 -4

No files matched your search

+2 -2
View File
@@ -15,8 +15,8 @@ export default class Mood extends Component {
constructor(props) {
super(props)
const cycleDay = props.cycleDay
if (cycleDay && cycleDay.pain) {
this.state = Object.assign({}, cycleDay.pain)
if (cycleDay && cycleDay.mood) {
this.state = Object.assign({}, cycleDay.mood)
} else {
this.state = {}
}