Skip to content

Commit

Permalink
code tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Sep 11, 2023
1 parent 4afa19e commit 04a0f84
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion parsers/sheetParserConfigs.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const enbridgeUsageHistory = {
dataType: 'function',
dataFunction(dataObject) {
let accountNumber = dataObject['Account Number'];
if (accountNumber.slice(-1) === "'") {
if (accountNumber.endsWith("'")) {
accountNumber = accountNumber.slice(0, Math.max(0, accountNumber.length - 1));
}
return accountNumber;
Expand Down
2 changes: 1 addition & 1 deletion parsers/sheetParserConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const enbridgeUsageHistory: ConfigParserConfiguration = {
dataType: 'function',
dataFunction(dataObject: EnbridgeUsageHistoryRowData) {
let accountNumber = dataObject['Account Number']
if (accountNumber.slice(-1) === "'") {
if (accountNumber.endsWith("'")) {
accountNumber = accountNumber.slice(
0,
Math.max(0, accountNumber.length - 1)
Expand Down
2 changes: 1 addition & 1 deletion public-typescript/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
const containerElement = document.querySelector('#container--processedFiles');
const tableElement = document.createElement('table');
tableElement.className =
'table is-fullwidth is-striped is-hoverable has-sticky-header';
'table is-fullwidth is-striped is-hoverable is-fade-hoverable has-sticky-header';
tableElement.innerHTML = `<thead><tr>
<th class="has-width-10"><span class="is-sr-only">Processed Status</span></th>
<th>Processed File</th>
Expand Down
2 changes: 1 addition & 1 deletion public-typescript/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ declare const cityssm: cityssmGlobal

const tableElement = document.createElement('table')
tableElement.className =
'table is-fullwidth is-striped is-hoverable has-sticky-header'
'table is-fullwidth is-striped is-hoverable is-fade-hoverable has-sticky-header'

tableElement.innerHTML = `<thead><tr>
<th class="has-width-10"><span class="is-sr-only">Processed Status</span></th>
Expand Down
2 changes: 1 addition & 1 deletion public/javascripts/data.min.js

Large diffs are not rendered by default.

0 comments on commit 04a0f84

Please sign in to comment.