mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-10 16:49:39 -04:00
payment method ids are case insensitive
This commit is contained in:
parent
cf8b8132cf
commit
5ed4829165
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue