diff --git a/client/src/components/Dashboard.js b/client/src/components/Dashboard.js index 103848a..9bab068 100644 --- a/client/src/components/Dashboard.js +++ b/client/src/components/Dashboard.js @@ -6,6 +6,7 @@ import NewHabitForm from './NewHabitForm'; import CheckIn from './CheckIn'; import CurrentHabit from './CurrentHabit'; import Progress from './Progress'; +import CheckInForm from './CheckInForm'; class Dashboard extends Component { @@ -27,7 +28,7 @@ class Dashboard extends Component { .then(res => this.setState({ habitData: res.data.data }, () => { this.state.habitData ? this.setState({ - newEntry: false, newEntryButton: false + habitExist: true, newEntry: false, newEntryButton: false }) : this.setState({ newEntry: true, newEntryButton: true, habitExist: false }) }) ) @@ -79,6 +80,7 @@ class Dashboard extends Component {
Have a habit? : {this.state.habitExist.toString()}
{/* TESTING FORM */}