mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 19:49:32 +00:00
set selected currency when account has single currency
Some checks failed
CI / build (macos-13) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
Codacy Coverage Reporter / Publish coverage (push) Has been cancelled
CodeQL / Analyze (java) (push) Has been cancelled
Some checks failed
CI / build (macos-13) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
Codacy Coverage Reporter / Publish coverage (push) Has been cancelled
CodeQL / Analyze (java) (push) Has been cancelled
This commit is contained in:
parent
7c2af064a3
commit
6de61243b3
1 changed files with 1 additions and 0 deletions
|
@ -108,6 +108,7 @@ class TraditionalAccountsDataModel extends ActivatableDataModel {
|
||||||
TradeCurrency singleTradeCurrency = paymentAccount.getSingleTradeCurrency();
|
TradeCurrency singleTradeCurrency = paymentAccount.getSingleTradeCurrency();
|
||||||
List<TradeCurrency> tradeCurrencies = paymentAccount.getTradeCurrencies();
|
List<TradeCurrency> tradeCurrencies = paymentAccount.getTradeCurrencies();
|
||||||
if (singleTradeCurrency != null) {
|
if (singleTradeCurrency != null) {
|
||||||
|
paymentAccount.setSelectedTradeCurrency(singleTradeCurrency);
|
||||||
if (singleTradeCurrency instanceof TraditionalCurrency)
|
if (singleTradeCurrency instanceof TraditionalCurrency)
|
||||||
preferences.addTraditionalCurrency((TraditionalCurrency) singleTradeCurrency);
|
preferences.addTraditionalCurrency((TraditionalCurrency) singleTradeCurrency);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue