Skip to content

Commit 09406b6

Browse files
committed
Hide favorite button in TeamLookup when there is no input
1 parent f7b6047 commit 09406b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/com/sunkensplashstudios/VRCRoboScout/LookupView.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ fun TeamLookup(lookupViewModel: LookupViewModel, navController: NavController) {
382382
Spacer(modifier = Modifier.weight(1.0f))
383383
Box {
384384
IconButton(
385-
enabled = lookupViewModel.number.value != "229V\u200B",
385+
enabled = lookupViewModel.number.value != "229V\u200B" && lookupViewModel.number.value.isNotBlank(),
386+
modifier = Modifier.alpha(if (lookupViewModel.number.value != "229V\u200B" && lookupViewModel.number.value.isNotBlank()) 1F else 0F),
386387
onClick = {
387388
favoriteTeams =
388389
if (lookupViewModel.number.value.isEmpty() || lookupViewModel.number.value == "229V\u200B") {

app/src/main/java/com/sunkensplashstudios/VRCRoboScout/RoboScoutAPI.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,6 @@ class RoboScoutAPI {
484484
val reRankingsData = roboteventsRequest("/teams/${team.id}/rankings", mapOf("season" to season.id))
485485
val reRankings = reRankingsData.map { jsonWorker.decodeFromJsonElement<TeamRanking>(it) }
486486
for (eventRankings in reRankings) {
487-
println("${eventRankings.event.name}: ${eventRankings.wins} wins, ${eventRankings.losses} losses, ${eventRankings.ties} ties, ${eventRankings.ap} AP, ${eventRankings.wp} WP")
488487
totalWins += eventRankings.wins
489488
totalLosses += eventRankings.losses
490489
totalTies += eventRankings.ties

0 commit comments

Comments
 (0)