Submitted about 4 years agoA solution to the Time tracking dashboard challenge
Time Tracker: Tailwind, Async.
@thezrbauer

Solution retrospective
Hello, this will the first project I upload. I had some trouble getting the daily/weekly/monthly JSON functions to not stack on top of each other, and to clear the previous function upon each onclick event. I eventually got it to work by creating functions that set the same json calls to null, and called those before the new JSON was called.
To me, my approach seemed kind of redundant. And I would appreciate any tips on how to streamline the JS, or if there was a more obvious way of handling it.
Thank you for your time.
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Zack Bauer's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord