When setting the Main Branch of a Project as the homepage, when re-loading the page, the icon is not correctly checked:
The reason is the branch support. The payload of /api/users/current returns the current homepage of the user, but if it's the main branch, no branch info is returned. However, the frontend part (in HomePageSelect.tsx) checks the branch info. Because it doesn't match, the icon isn't checked.
We should either:
- Fix this on the backend, by always returning the same information the frontend provides (i.e., when setting the homepage, the frontend provides the branch, even if it's the Main Branch)
- Fix this check on the frontend, by not checking the branch info if on the Main Branch