From da10f1ec928d64a7ffaff1b3a26e412e55dbe4cf Mon Sep 17 00:00:00 2001 From: dangowans Date: Thu, 3 Oct 2024 15:26:44 -0400 Subject: [PATCH] switch th to td --- public/javascripts/licence-edit.js | 6 +++--- public/javascripts/licence-edit.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/javascripts/licence-edit.js b/public/javascripts/licence-edit.js index 59d844b..77ece9c 100644 --- a/public/javascripts/licence-edit.js +++ b/public/javascripts/licence-edit.js @@ -751,7 +751,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); ''); (_a = trElement .querySelector('button')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', deleteLicenceTransaction); - tbodyElement.append(trElement); + tbodyElement === null || tbodyElement === void 0 ? void 0 : tbodyElement.append(trElement); transactionTotal += licenceTransaction.transactionAmount; } const tfootElement = licenceTransactionsTableElement.querySelector('tfoot'); @@ -761,7 +761,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); '$' + transactionTotal.toFixed(2) + '' + - '' + + '' + ''; const outstandingBalance = getOutstandingBalance(); if (outstandingBalance > 0) { @@ -770,7 +770,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); '$' + outstandingBalance.toFixed(2) + '' + - '' + + '' + ''); } }; diff --git a/public/javascripts/licence-edit.ts b/public/javascripts/licence-edit.ts index 7901459..749a9e4 100644 --- a/public/javascripts/licence-edit.ts +++ b/public/javascripts/licence-edit.ts @@ -1187,7 +1187,7 @@ declare const glm: GLM .querySelector('button') ?.addEventListener('click', deleteLicenceTransaction) - tbodyElement.append(trElement) + tbodyElement?.append(trElement) transactionTotal += licenceTransaction.transactionAmount } @@ -1200,7 +1200,7 @@ declare const glm: GLM '$' + transactionTotal.toFixed(2) + '' + - '' + + '' + '' const outstandingBalance = getOutstandingBalance() @@ -1213,7 +1213,7 @@ declare const glm: GLM '$' + outstandingBalance.toFixed(2) + '' + - '' + + '' + '' ) }