mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-01-13 00:09:52 -05:00
payment method ids are case insensitive
This commit is contained in:
parent
cf8b8132cf
commit
5ed4829165
@ -3299,7 +3299,6 @@ function getCryptoAddress(currencyCode: string): string|undefined {
|
||||
|
||||
async function createPaymentAccount(trader: HavenoClient, assetCodes: string, paymentMethodId?: string) {
|
||||
if (!paymentMethodId) paymentMethodId = isCrypto(assetCodes!) ? "block_chains" : "revolut";
|
||||
paymentMethodId = paymentMethodId.toUpperCase(); // TODO: remove case sensitivity
|
||||
const accountForm = await trader.getPaymentAccountForm(paymentMethodId);
|
||||
for (const field of accountForm.getFieldsList()) field.setValue(getValidFormInput(accountForm, field.getId()));
|
||||
HavenoUtils.setFormValue(PaymentAccountFormField.FieldId.TRADE_CURRENCIES, assetCodes, accountForm);
|
||||
|
Loading…
Reference in New Issue
Block a user