From ad1362476566c71abd5ad61646e7168fa7920f8d Mon Sep 17 00:00:00 2001 From: Sunrise Date: Sun, 30 Apr 2023 14:15:33 -0400 Subject: [PATCH] before pulling from master --- db_app/src/components/Plan.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/db_app/src/components/Plan.js b/db_app/src/components/Plan.js index 7dea137..165cf8e 100644 --- a/db_app/src/components/Plan.js +++ b/db_app/src/components/Plan.js @@ -83,6 +83,9 @@ function weekStart(){ return db_date; } +const net_id = ReactSession.get("net_id"); + +//to set nutritional goal for the week const [goalInput, setGoalInput] = useReducer( (state, newState) => ({ ...state, ...newState }), { @@ -100,7 +103,6 @@ const [goalInput, setGoalInput] = useReducer( } ); -const net_id = ReactSession.get("net_id"); const handleSubmit = evt => { let data = {goalInput} @@ -221,7 +223,7 @@ const handleSubmit = evt => {

-       +     So Far This Week: