Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fetch cached balance #1378

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ internal class ConfirmDeleteViewModel @Inject constructor(
uiModel.update {
it.copy(
vaultDeleteUiModel = it.vaultDeleteUiModel.copy(
totalFiatValue = totalFiatValue?: ""
totalFiatValue = totalFiatValue
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import kotlinx.coroutines.flow.flatMapConcat
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.flow.zip
import java.math.BigDecimal
import java.math.RoundingMode
import javax.inject.Inject

Expand Down Expand Up @@ -148,7 +149,10 @@ internal class BalanceRepositoryImpl @Inject constructor(
currency.ticker
)
} else {
null
FiatValue(
BigDecimal.ZERO,
currency.ticker
)
Comment on lines +152 to +155
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't this break loaders on VaultAccountsScreen?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, I ve checked

}

TokenBalanceWrapped(
Expand Down