summaryrefslogtreecommitdiff
path: root/client/components/MealList.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/MealList.jsx')
-rw-r--r--client/components/MealList.jsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/client/components/MealList.jsx b/client/components/MealList.jsx
index 7a46c6d..7efbf4d 100644
--- a/client/components/MealList.jsx
+++ b/client/components/MealList.jsx
@@ -48,7 +48,6 @@ export default class MealList extends React.Component {
this.mealForm.pick(meal)
}
loadMeals(meals) {
- console.log(meals)
this.setState({ data: meals })
}
render() {
@@ -64,18 +63,16 @@ export default class MealList extends React.Component {
onDelete={this.handleDelete} />
)
})
- console.log(this.props.user.goal, group.calories)
const isOverLimit = group.calories > this.props.user.goal ? 'isOverLimit' : 'isUnderLimit'
return (
<div key={group.date} className='group'>
<span className='groupDate'>{group.date}</span>
- <span className={'calories ' + isOverLimit}>{group.calories} cal.</span>
+ <span className={'calories ' + isOverLimit}>{group.calories} cal</span>
<br />
{mealitems}
</div>
)
})
- console.log(items)
if (! items.length) {
items.push(
<div className='quiet' key='nomeals'>No meals found</div>