Only show supported currencies - Tweak UI

This commit is contained in:
nymkappa
2023-02-15 15:01:07 +09:00
parent e009c78c3e
commit fddbf51084
4 changed files with 12 additions and 61 deletions

View File

@@ -12,8 +12,15 @@ import { StateService } from '../../services/state.service';
})
export class FiatSelectorComponent implements OnInit {
fiatForm: UntypedFormGroup;
currencies = fiatCurrencies;
currencyList = Object.keys(fiatCurrencies).sort();
currencies = Object.entries(fiatCurrencies).sort((a: any, b: any) => {
if (a[1].name < b[1].name) {
return -1;
}
if (a[1].name > b[1].name) {
return 1;
}
return 0;
});
constructor(
private formBuilder: UntypedFormBuilder,