ui: Fix js value updates when sending bid.

This commit is contained in:
tecnovert
2022-07-29 00:47:32 +02:00
parent 871bdb918e
commit 7a3b41a11b
4 changed files with 23 additions and 22 deletions

View File

@@ -169,12 +169,12 @@ function updateBidParams(value_changed) {
let amt_from = '';
let rate = '';
if (amt_var) {
if (amt_var == 'True') {
amt_from = document.getElementById('bid_amount').value;
} else {
amt_from = document.getElementById('amount_from').value;
}
if (rate_var) {
if (rate_var == 'True') {
rate = document.getElementById('bid_rate').value;
} else {
rate = document.getElementById('offer_rate').value;