From 9cd48c660231592f3f8d9a035d45b568d987616e Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 17 Apr 2025 17:46:39 +0200 Subject: Show icon for win/lose/draw on play landing page --- pkg/ui/views/play_content.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/ui/views/play_content.go') diff --git a/pkg/ui/views/play_content.go b/pkg/ui/views/play_content.go index a128800..d6a327f 100644 --- a/pkg/ui/views/play_content.go +++ b/pkg/ui/views/play_content.go @@ -29,7 +29,7 @@ func (m PlayModel) renderPageContent(base lipgloss.Style) string { return base.Render(chessBoard) } else { start, end := m.paginator.GetSliceBounds(len(m.games)) - gamesStrings := formatGamesForPage(m.games[start:end], altCodeStyle) + gamesStrings := formatGamesForPage(m.userID, m.games[start:end], altCodeStyle) pageInfo := m.paginator.View() return base.Render(lipgloss.JoinVertical(lipgloss.Center, strings.Join(gamesStrings, "\n"), pageInfo)) } -- cgit v1.2.3-18-g5258