Skip to content

Commit

Permalink
Correct currency rate
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Dec 6, 2021
1 parent e0cdd7b commit 9100eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/payment/edit/payment_edit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class _PaymentEditState extends State<PaymentEdit> {
if (currency != null) {
final client = state.clientState.get(payment.clientId);
exchangeRate = getExchangeRate(state.staticState.currencyMap,
fromCurrencyId: currency.id, toCurrencyId: client.currencyId);
fromCurrencyId: client.currencyId, toCurrencyId: currency.id);
}

_exchangeRateController.removeListener(_onChanged);
Expand Down

0 comments on commit 9100eed

Please sign in to comment.