mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-01-27 14:57:22 -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) {
|
async function createPaymentAccount(trader: HavenoClient, assetCodes: string, paymentMethodId?: string) {
|
||||||
if (!paymentMethodId) paymentMethodId = isCrypto(assetCodes!) ? "block_chains" : "revolut";
|
if (!paymentMethodId) paymentMethodId = isCrypto(assetCodes!) ? "block_chains" : "revolut";
|
||||||
paymentMethodId = paymentMethodId.toUpperCase(); // TODO: remove case sensitivity
|
|
||||||
const accountForm = await trader.getPaymentAccountForm(paymentMethodId);
|
const accountForm = await trader.getPaymentAccountForm(paymentMethodId);
|
||||||
for (const field of accountForm.getFieldsList()) field.setValue(getValidFormInput(accountForm, field.getId()));
|
for (const field of accountForm.getFieldsList()) field.setValue(getValidFormInput(accountForm, field.getId()));
|
||||||
HavenoUtils.setFormValue(PaymentAccountFormField.FieldId.TRADE_CURRENCIES, assetCodes, accountForm);
|
HavenoUtils.setFormValue(PaymentAccountFormField.FieldId.TRADE_CURRENCIES, assetCodes, accountForm);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user