Skip to content

Commit

Permalink
Merge pull request #2387 from WPO-Foundation/fix-taxes
Browse files Browse the repository at this point in the history
fix(estimate-taxes): if script runs and page doesn't need it, stop
  • Loading branch information
jefflembeck authored Sep 30, 2022
2 parents 352e2aa + ac48f32 commit 986acda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/assets/js/estimate-taxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

class EstimateTaxes {
constructor(addressForm, summaryNode) {
if(!addressForm || !summaryNode) {
return;
}
this.form = addressForm;
this.summary = summaryNode;
this.form.addEventListener("submit", async (e) => {
Expand Down

0 comments on commit 986acda

Please sign in to comment.