Closed ericahagle closed 1 year ago
generateRandomUserID
fetchUsers(usersApi)
fetchHydrationData(hydrationApi)
fetchActivityData(activityApi)
fetchSleepData(sleepApi)
fetchAllTheData
scripts.js
@ericahagle
selectCurrentUser
Note that I have not removed those hard-coded data files yet. I wanted to make sure we were happy with this stuff first. I plan to open a separate PR to remove them after this is approved/merged/etc.
Description
generateRandomUserID
function to utilize array of user data instead of simple base 10fetchUsers(usersApi)
fetchHydrationData(hydrationApi)
fetchActivityData(activityApi)
fetchSleepData(sleepApi)
fetchAllTheData
scripts.js
which fetches the Promises for all the data on load and updates global variablesgenerateRandomUserID
Contributors
@ericahagle
Notes
selectCurrentUser
function anymore? Or maybe it just needs to be altered?Checklist