Skip to content

Commit f71fb24

Browse files
authored
chore(tokens): dont fetch historical USDF data (#1020)
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 5d1e071 commit f71fb24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/flipcash/shared/tokens/src/main/kotlin/com/flipcash/app/tokens/ui/TokenInfoViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ class TokenInfoViewModel @Inject constructor(
262262

263263
eventFlow
264264
.filterIsInstance<Event.OnMarketCapChanged>()
265-
.map { it.mcap }
265+
.mapNotNull { it.mcap }
266266
.distinctUntilChanged()
267267
.onEach { dispatchEvent(Event.LoadHistoricalDataForPeriod(stateFlow.value.selectedPeriod)) }
268268
.launchIn(viewModelScope)

0 commit comments

Comments
 (0)