Skip to content

Commit a5efd81

Browse files
authored
make past games card show score if available (#79)
1 parent 59aa648 commit a5efd81

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/main/java/com/cornellappdev/score/components/GamesCarousel.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ fun GamesCarousel(
8585
headerModifier = Modifier,
8686
gradientColor1 = CornellRed,
8787
gradientColor2 = game.teamColor,
88+
leftScore = game.cornellScore?.toInt(),
89+
rightScore = game.otherScore?.toInt(),
8890
onClick = { onClick(game.id) }
8991
)
9092
}

0 commit comments

Comments
 (0)