Closed Harrk closed 3 years ago
Hi thanks for the patch I didn't saw it before because apple shuts down my email account and can verify the patches, tomorrow I will try it on local machine but I think they're ok. I will be continue the project on here https://github.com/jolu-pa/stdbgames thanks a lot!!
@jolu-pa No probs! FYI, I sent you a PM on Twitter regarding an authentication bug that I came across. 🕵️♂️
DM answered! I will try to fix all later! When I come out of work! Also thanks a lot!
Wishlist is only rendered when there are no errors. Because I have no games in my library an error is being raised which conflicts with the wishlist. As a result the wishlist also believes there are no games.
https://github.com/jolupa/stdbgames/blob/e7a39c2fd7996fea169327cfbe7a3b1625d9452f/app/Controllers/Libraries.php#L13
https://github.com/jolupa/stdbgames/blob/604a663abfef0b87ff461804e6646c5559df8b88/app/Views/wishlists/userwishlist.php#L1-L9
I've opened a PR to resolve the issue, though it bypasses the errors altogether. Also I've renamed the wishlist variable within the foreach loop to avoid confusion and unwanted side effects. Also note this hasn't been tested as I don't have your project set up.