From ca671877544249e5851ed6039f85dae3f4503c5b Mon Sep 17 00:00:00 2001 From: null Date: Tue, 7 Jul 2026 22:04:54 -0500 Subject: [PATCH] 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 --- .../main/java/app/closer/ui/questions/LocalQuestionContent.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/app/closer/ui/questions/LocalQuestionContent.kt b/app/src/main/java/app/closer/ui/questions/LocalQuestionContent.kt index 4f1db0f2..dddcb178 100644 --- a/app/src/main/java/app/closer/ui/questions/LocalQuestionContent.kt +++ b/app/src/main/java/app/closer/ui/questions/LocalQuestionContent.kt @@ -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() } } }