Skip to content

Commit

Permalink
function not arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
Barny-Thorpe committed Mar 28, 2024
1 parent 9a22c23 commit 6c3992c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/gf-giftaid-field-frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function initGiftAid() {
if (!totalSelector) {
return;
}
window.gform.addAction('gform_input_change', (elem) => {
window.gform.addAction('gform_input_change', function (elem) {
const value = elem.value;
const valueFloat = parseFloat(value);
const giftAidFloat = valueFloat * 1.25;
Expand Down

0 comments on commit 6c3992c

Please sign in to comment.