Updated on 2026-08-14
This commit is contained in:
parent
afcde269ce
commit
13ae7be53f
2 changed files with 3 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ internal class DefaultAppCurrencyRepository(
|
|||
.collect(::send)
|
||||
}
|
||||
|
||||
launch(dispatchers.io) {
|
||||
withContext(dispatchers.io) {
|
||||
if (selectedAppCurrencyStore.isEmpty()) {
|
||||
fetchDefaultAppCurrency()
|
||||
}
|
||||
|
|
@ -47,6 +47,7 @@ internal class DefaultAppCurrencyRepository(
|
|||
|
||||
val currencies = availableAppCurrenciesStore.getAllSyncOrNull()
|
||||
?.map(appCurrencyConverter::convert)
|
||||
?.sortedBy(AppCurrency::name)
|
||||
|
||||
requireNotNull(currencies) {
|
||||
"No available currencies stored"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue