Skip to content

Commit 69aa1a4

Browse files
committed
fix(currency): sync entry currency when balance currency changes
Entry currency wasn't updating when the user changed balance currency from the wallet screen, causing the give screen to show the old currency until opened a second time. Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 39ad68f commit 69aa1a4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/flipcash/shared/currency-selection/core/src/main/kotlin/com/flipcash/app/currency/PreferredCurrencyController.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ class PreferredCurrencyController @Inject constructor(
138138
prefs[recentKey] = updateRecents(recents, currency.code)
139139
}
140140
exchange.setPreferredBalanceCurrency(code)
141+
exchange.setPreferredEntryCurrency(code)
141142
settingsController.update()
142143
}
143144
}

0 commit comments

Comments
 (0)