Closed nomuffn closed 2 years ago
If no players are found within the search, the api returns a 404 Error and the Promise.all() bails out and would therefore not load the leaderboards anymore. Promise.allSettled() should instead do the trick here: https://stackoverflow.com/questions/30362733/handling-errors-in-promise-all.
If no players are found within the search, the api returns a 404 Error and the Promise.all() bails out and would therefore not load the leaderboards anymore. Promise.allSettled() should instead do the trick here: https://stackoverflow.com/questions/30362733/handling-errors-in-promise-all.