Skip to content

Commit

Permalink
use form validation function when estimating fee
Browse files Browse the repository at this point in the history
  • Loading branch information
djpnewton committed Feb 12, 2021
1 parent b599454 commit ec70f6b
Showing 1 changed file with 3 additions and 7 deletions.
Expand Up @@ -421,13 +421,9 @@
}
async function calculateEstimatedFee() {
if (document.getElementById('ui-radio-btn').checked) {
for(let i in amounts) {
if (!validateAddress(i)) {
showError('Please first enter a valid address');
return;
}
}
document.getElementById('calculated_tx_fee').innerText = ``;
if (await validateForm(true) !== true) {
return;
}
try {
let feeOptionManual = document.getElementById('fee_option_manual')
Expand Down

0 comments on commit ec70f6b

Please sign in to comment.