Skip to content

Commit 83e5e6d

Browse files
committed
chore(token/info): add back market cap diff lable for ALL tab
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent d86c22b commit 83e5e6d

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

  • apps/flipcash/features/tokens/src/main/kotlin/com/flipcash/app/tokens/internal/components/info

apps/flipcash/features/tokens/src/main/kotlin/com/flipcash/app/tokens/internal/components/info/MarketCapSection.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,11 @@ internal fun MarketCapSection(
108108
val diff = marketCapDiff
109109
when {
110110
highlightedPoint != null -> MarketCapLabelState.Highlighted(highlightedPoint, selectedPeriod)
111-
diff != null && selectedPeriod != Period.All -> {
111+
diff != null -> {
112112
MarketCapLabelState.Change(diff, selectedPeriod).also { lastChange = it }
113113
}
114114
else ->
115-
if (selectedPeriod == Period.All) {
116-
lastChange = null
117-
MarketCapLabelState.Hidden
118-
} else {
119-
lastChange ?: MarketCapLabelState.Hidden
120-
}
115+
lastChange ?: MarketCapLabelState.Hidden
121116
}
122117
}
123118
}

0 commit comments

Comments
 (0)