Add mood category to chart
This commit is contained in:
1 parent
56f5c92f87
commit
570d0dc608
5 files changed
+27
-4
No files matched your search
@@ -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 = {}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user