fix(ui): strip internal 'mc' token from the reveal-screen category chip too

The daily reveal chip used displayCategoryName() (a different surface than the
Home pill fixed earlier), so it still showed 'Daily Fun Mc'. Fixed centrally in
the shared helper. Verified live: reveal now shows 'Daily Fun'.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
null 2026-07-07 22:04:54 -05:00
parent f2321d3536
commit ca67187754
1 changed files with 2 additions and 0 deletions

View File

@ -337,6 +337,8 @@ private fun answerSummary(question: Question, state: LocalQuestionUiState): Stri
fun String.displayCategoryName(): String {
return split("_", "-")
.filter { it.isNotBlank() }
// Internal format tokens (e.g. the "mc" in daily_fun_mc) must never face users.
.filterNot { it.lowercase() == "mc" }
.joinToString(" ") { part -> part.replaceFirstChar { it.uppercaseChar() } }
}