Refactor (and rename) the formerly selectCurrentUser function
Renamed to addDataToCurrentUser
Move the returns in each individual fetch to get the correct results from them
Add addDataToCurrentUser invocation to the event listener to get a complete user
Contributors
@ericahagle
Notes
I kept thinking about this and decided to take a crack at it. I did some troubleshooting with my repl, where you can see it working easily, even without the rest of the project hooked up, if you like: https://replit.com/@EricaHagle2/fitlit-scratchpad#index.js
Checklist
[x] My PR has an appropriately descriptive and concise title.
[x] My PR denotes any/all team members who contributed to it.
[x] My code follows the Turing Style Guides and best practices.
[x] I ran the code locally and verified that there are no visible errors.
[x] fix: My PR clearly describes what bug I'm fixing and why. (if applicable)
[x] refactor: My PR clearly describes what code I'm refactoring and why. (if applicable)
Description
selectCurrentUser
functionaddDataToCurrentUser
addDataToCurrentUser
invocation to the event listener to get a complete userContributors
@ericahagle
Notes
I kept thinking about this and decided to take a crack at it. I did some troubleshooting with my repl, where you can see it working easily, even without the rest of the project hooked up, if you like: https://replit.com/@EricaHagle2/fitlit-scratchpad#index.js
Checklist