refactor(geocache): name the hunt's cache count instead of a let chain

This commit is contained in:
davotoula
2026-09-27 11:16:29 +02:00
parent 6a3300be35
commit fbd710f9cf
@@ -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,