Skip to content

Commit

Permalink
loan set on input
Browse files Browse the repository at this point in the history
  • Loading branch information
Sm1pleScr1pt committed Oct 11, 2024
1 parent 9836027 commit b6d7e47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/applyloanform/applyloanforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@ export function applyLoanFormClick() {
input.value = event.target.textContent.trim();

if (input.id == 'form-loan-type') {
const { loanType } = event.target.dataset;
const { loanType, loanName } = event.target.dataset;
input.dataset.loanType = loanType;
input.dataset.loanName = loanName;
stateInput().value = '';
loanProduct().dispatchEvent(new Event('change'));
}
Expand Down

0 comments on commit b6d7e47

Please sign in to comment.