test xgb with pay by mail

This commit is contained in:
woodser 2023-09-07 16:00:29 -04:00
parent 0c8437413d
commit eed5d523e5

View File

@ -3487,6 +3487,7 @@ function getValidFormInput(form: PaymentAccountForm, fieldId: PaymentAccountForm
case PaymentAccountFormField.FieldId.TRADE_CURRENCIES:
if (field.getComponent() === PaymentAccountFormField.Component.SELECT_ONE) {
if (form.getId() === PaymentAccountForm.FormId.F2F) return "XAU";
if (form.getId() === PaymentAccountForm.FormId.PAY_BY_MAIL) return "XGB";
return field.getSupportedCurrenciesList()[0]!.getCode(); // TODO: randomly select?
}
else return field.getSupportedCurrenciesList().map(currency => currency.getCode()).join(',');