fix: display error in a friendlier way on rankings

migrate from status overlays to displaying within container
This commit is contained in:
Yonle
2026-05-15 22:39:54 -04:00
committed by GitHub
parent aec0fdac8b
commit 4895456bb0
2 changed files with 3 additions and 4 deletions
@@ -57,7 +57,7 @@ abstract class GameApiController<T : IUserData>(val name: String, userDataClass:
val time = millis()
// Check cache validity
if (rankingCache.isEmpty()) (500 - "Ranking is computing... please wait")
if (rankingCache.isEmpty()) (500 - "Rank is empty or is currently computing. Please come back later.")
val reqUser = token?.let { us.jwt.auth(it) }?.let { u ->
// Optimization: If the user is not banned, we don't need to process user information