diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-04-17 17:46:39 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-04-17 17:46:39 +0200 |
commit | 9cd48c660231592f3f8d9a035d45b568d987616e (patch) | |
tree | 5d6adb401f1697a78230f9931e9682be30cbdf95 /pkg/ui/views/play_content.go | |
parent | 3ad0d21e072c7461ea78a9a85111e6e19d3b0632 (diff) |
Show icon for win/lose/draw on play landing page
Diffstat (limited to 'pkg/ui/views/play_content.go')
-rw-r--r-- | pkg/ui/views/play_content.go | 2 |
1 files changed, 1 insertions, 1 deletions
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)) } |