Skip to content

Commit

Permalink
switch th to td
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Oct 3, 2024
1 parent c89a483 commit da10f1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions public/javascripts/licence-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
'</td>');
(_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');
Expand All @@ -761,7 +761,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
'<th id="transactions--total" class="has-text-right">$' +
transactionTotal.toFixed(2) +
'</th>' +
'<th></th>' +
'<td></td>' +
'</tr>';
const outstandingBalance = getOutstandingBalance();
if (outstandingBalance > 0) {
Expand All @@ -770,7 +770,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
'<th class="has-text-right">$' +
outstandingBalance.toFixed(2) +
'</th>' +
'<th></th>' +
'<td></td>' +
'</tr>');
}
};
Expand Down
6 changes: 3 additions & 3 deletions public/javascripts/licence-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ declare const glm: GLM
.querySelector('button')
?.addEventListener('click', deleteLicenceTransaction)

tbodyElement.append(trElement)
tbodyElement?.append(trElement)

transactionTotal += licenceTransaction.transactionAmount
}
Expand All @@ -1200,7 +1200,7 @@ declare const glm: GLM
'<th id="transactions--total" class="has-text-right">$' +
transactionTotal.toFixed(2) +
'</th>' +
'<th></th>' +
'<td></td>' +
'</tr>'

const outstandingBalance = getOutstandingBalance()
Expand All @@ -1213,7 +1213,7 @@ declare const glm: GLM
'<th class="has-text-right">$' +
outstandingBalance.toFixed(2) +
'</th>' +
'<th></th>' +
'<td></td>' +
'</tr>'
)
}
Expand Down

0 comments on commit da10f1e

Please sign in to comment.