File tree Expand file tree Collapse file tree 3 files changed +1
-7
lines changed
app/src/main/java/to/bitkit Expand file tree Collapse file tree 3 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -177,10 +177,6 @@ class CurrencyRepo @Inject constructor(
177177 refresh()
178178 }
179179
180- fun getCurrencySymbol (): String {
181- return _currencyState .value.currencySymbol
182- }
183-
184180 fun getCurrentRate (currency : String ): FxRate ? {
185181 return _currencyState .value.rates.firstOrNull { it.quote == currency }
186182 }
Original file line number Diff line number Diff line change @@ -1069,7 +1069,7 @@ private fun NavGraphBuilder.widgets(
10691069 WidgetType .WEATHER -> navController.navigate(Routes .WeatherPreview )
10701070 }
10711071 },
1072- fiatSymbol = currencyViewModel.getCurrencySymbol()
1072+ fiatSymbol = LocalCurrencies .current.currencySymbol,
10731073 )
10741074 }
10751075 composableWithDefaultTransitions<Routes .CalculatorPreview > {
Original file line number Diff line number Diff line change @@ -49,8 +49,6 @@ class CurrencyViewModel @Inject constructor(
4949 }
5050 }
5151
52- fun getCurrencySymbol (): String = currencyRepo.getCurrencySymbol()
53-
5452 // UI Helpers
5553 fun convert (sats : Long , currency : String? = null): ConvertedAmount ? {
5654 return currencyRepo.convertSatsToFiat(sats, currency).getOrNull()
You can’t perform that action at this time.
0 commit comments