diff --git a/public/javascripts/bylaw-maint.js b/public/javascripts/bylaw-maint.js index 0d6d732..cb4705e 100644 --- a/public/javascripts/bylaw-maint.js +++ b/public/javascripts/bylaw-maint.js @@ -99,7 +99,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); }); } function renderBylawListFunction() { - var _a, _b; + var _a, _b, _c; let displayCount = 0; const bylawFilterSplit = bylawFilterElement.value .trim() @@ -129,9 +129,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); } else { hasOffences = true; - offenceAmountRange = `$${bylaw.offenceAmountMin.toFixed(2)}`; + offenceAmountRange = `$${((_a = bylaw.offenceAmountMin) !== null && _a !== void 0 ? _a : 0).toFixed(2)}`; if (bylaw.offenceAmountMin !== bylaw.offenceAmountMax) { - offenceAmountRange += ` to $${((_a = bylaw.offenceAmountMax) !== null && _a !== void 0 ? _a : 0).toFixed(2)}`; + offenceAmountRange += ` to $${((_b = bylaw.offenceAmountMax) !== null && _b !== void 0 ? _b : 0).toFixed(2)}`; } offenceAmountRange = ` ${offenceAmountRange} @@ -146,7 +146,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); ${cityssm.escapeHTML(bylaw.bylawDescription)}