Closed frankcollins3 closed 1 year ago
I think the discrepancy is between the signup and login not DEV | PROD signup function might be: localStorage.setItem("currentuser") incorrectly. But when the user logs out, clears local Storage and logs in the data works.
issue looks to be solved might reopen. [10:23pm]
well not DEV mode but testing local data routes using heroku provided DB instead of localhost:5000 DB. attempting to do: deploy. Test app data routes. Blue bars get clicked and once they all have been, data gets saved.
error: problem is the data gets saved and can be seen with data object. The only key with problem is status[] which gets populated: ["check, check, check, check, check"] [or "check, "no", check, etc] based on missing water cycle or not. The user profile icon which is a shark I selected as test from user signup, indicating npx prisma db push works and allows psql.
explained below for localhost.. The blue bars are clicked. The data is created but with status[] instead of [check, check,....]![Screen Shot 2023-07-05 at 12 21 39 AM](https://github.com/frankcollins3/fill_container/assets/73137934/a0b51ee7-d958-4789-aa7b-d6d7467b8e31)
localhost:5000 data. Note the "check, check, check, check, check" which happens everytime a reminder bar is clicked.![Screen Shot 2023-07-05 at 12 23 14 AM](https://github.com/frankcollins3/fill_container/assets/73137934/2fca4889-4385-40e5-b94d-e0443077ac8b)
first proposed approach: it looks like "check" is attempted to be saved as "check%22" indicating whitespace?