Consolidate sections for current currency and selected currencies

This commit is contained in:
2024-11-20 20:33:23 +02:00
parent da21b78588
commit d7cbd96e09

View File

@@ -108,9 +108,7 @@ public struct ContentView: View {
.keyboardType(.decimalPad) .keyboardType(.decimalPad)
#endif #endif
} }
}
Section {
if satsViewModel.priceSource != .manual { if satsViewModel.priceSource != .manual {
ForEach(satsViewModel.selectedCurrencies.sorted { $0.identifier < $1.identifier }.filter { $0 != satsViewModel.currentCurrency }, id: \.identifier) { currency in ForEach(satsViewModel.selectedCurrencies.sorted { $0.identifier < $1.identifier }.filter { $0 != satsViewModel.currentCurrency }, id: \.identifier) { currency in
HStack { HStack {