mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-05 19:28:25 +00:00
refactor(geocache): name the hunt's cache count instead of a let chain
This commit is contained in:
+2
-1
@@ -179,7 +179,8 @@ fun GeocacheAddToHuntSheet(
|
||||
if (already) {
|
||||
stringRes(Res.string.geocache_hunt_already_on)
|
||||
} else {
|
||||
hunt.geocaches().size.let { pluralStringRes(Res.plurals.geocache_hunt_caches, it, it) }
|
||||
val cacheCount = hunt.geocaches().size
|
||||
pluralStringRes(Res.plurals.geocache_hunt_caches, cacheCount, cacheCount)
|
||||
},
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
|
||||
Reference in New Issue
Block a user