commit 8463439870ce528d18a9890541345d667cd3bee9
parent 5cadb3274c68acc4f3aeec933669ac89cd12fb6f
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Wed, 14 Jun 2023 06:11:23 -0700
typo
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/web/handlers/interceptors/chess.go b/pkg/web/handlers/interceptors/chess.go
@@ -461,7 +461,7 @@ func (g *ChessGame) drawPlayerCard(key string, isBlack, isSpectator, isYourTurn,
_ = json.Unmarshal(g.DbChessGame.Stats, &stats)
if stats != nil {
if len(stats.Scores) > 0 {
- columnWidth = utils.MinInt(graphWidth/len(stats.Scores), 1)
+ columnWidth = utils.MaxInt(graphWidth/len(stats.Scores), 1)
}
}