ItsSpyce / dailies-tracker

72 stars 23 forks source link

Number of completed tasks not updating #29

Open hllwrld7 opened 3 months ago

hllwrld7 commented 3 months ago

Describe the bug Number of completed tasks not getting updated after I choose a different date and switch back to the current date.

To Reproduce Steps to reproduce the behavior:

  1. Create a commission
  2. Mark it as done
  3. Number of completed tasks updates correctly
  4. Switch to a different date from the calendar
  5. Switch back to the current date
  6. Number of completed tasks is back to 0

Expected behavior Number of completed tasks should not go back to 0 on the same date I marked them as complete.

Screenshots The screenshot is from my locally built version, to show that the dates are a little wrong for some reason (I am just showing date.toISOString() here), but I can reproduce it on the version from the release as well. image

Desktop (please complete the following information):/

Additional context As I said in the comment to the screenshot, I think the date gets set incorrectly for some reason?? when I launch the app it is correct (19.05), but after switching the dates it becomes a day earlier, idk why it does that tho It's not that big of an issue, it can be solved by just restarting the app

ItsSpyce commented 3 months ago

I don't think it's an issue with the calendar, it looks to be something with the commission states not being properly updated from the database. I'll look into this!