summaryrefslogtreecommitdiff
path: root/pkg/ui/views/play_content.go
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-04-17 17:46:39 +0200
committerSanto Cariotti <santo@dcariotti.me>2025-04-17 17:46:39 +0200
commit9cd48c660231592f3f8d9a035d45b568d987616e (patch)
tree5d6adb401f1697a78230f9931e9682be30cbdf95 /pkg/ui/views/play_content.go
parent3ad0d21e072c7461ea78a9a85111e6e19d3b0632 (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.go2
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))
}