kiriDevs / vplanweb

A web app for the substitution plan of my school - data is supplied by an API maintained by @ChuangSheep
https://vplan.kiridevs.live
3 stars 0 forks source link

Invalid date selection at startup on weekends #45

Closed kiriDevs closed 2 years ago

kiriDevs commented 2 years ago

When checking on a weekend, the next schoolday is the first option in the dropdown and displayed as the selected, both as intended.

However, under the hood, the current date is selected. This is (probably) caused by the selection state variable in HomeScreen not being updated to the first date option after they are generated, which... We should probably do.

kiriDevs commented 2 years ago

This was already fixed in f4e866728dce7b6225e3fdb24a6a3139fece527f

kiriDevs commented 2 years ago

nvm it wasn't, that's what this issue was describing.