Skip to content

Commit 623968f

Browse files
committed
fix: move check to balance change
1 parent cef94d0 commit 623968f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/to/bitkit/ui/screens/wallets/HomeViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ class HomeViewModel @Inject constructor(
4949
setupStateObservation()
5050
setupArticleRotation()
5151
setupFactRotation()
52-
checkHighBalance()
5352
}
5453

5554
private fun setupStateObservation() {
@@ -91,6 +90,7 @@ class HomeViewModel @Inject constructor(
9190
showEmptyState = settings.showEmptyBalanceView && balanceState.totalSats == 0uL
9291
)
9392
}.collect { newState ->
93+
checkHighBalance()
9494
_uiState.update { newState }
9595
}
9696
}

0 commit comments

Comments
 (0)