From 8ca02fc7599cca6ee269c8a61eecc1ec12c1840b Mon Sep 17 00:00:00 2001 From: John Carroll Date: Thu, 21 Jul 2022 02:42:25 -0400 Subject: [PATCH 1/3] convrt N/A to N-A --- fec/fec/static/js/pages/committee-single.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fec/fec/static/js/pages/committee-single.js b/fec/fec/static/js/pages/committee-single.js index 8dce120863..83c868b1c8 100644 --- a/fec/fec/static/js/pages/committee-single.js +++ b/fec/fec/static/js/pages/committee-single.js @@ -109,7 +109,7 @@ var employerColumns = [ function(data, type, row) { if (row.employer) { return { - contributor_employer: row.employer + contributor_employer:row.employer.replace('N/A', 'N-A' ) }; } else { return null; From 26437357f54b29ec9a931065c2b2662740e7c32f Mon Sep 17 00:00:00 2001 From: John Carroll Date: Thu, 21 Jul 2022 21:32:28 -0400 Subject: [PATCH 2/3] dont link amount if emp is N/A --- fec/fec/static/js/pages/committee-single.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fec/fec/static/js/pages/committee-single.js b/fec/fec/static/js/pages/committee-single.js index 83c868b1c8..e70d144062 100644 --- a/fec/fec/static/js/pages/committee-single.js +++ b/fec/fec/static/js/pages/committee-single.js @@ -107,9 +107,9 @@ var employerColumns = [ render: columnHelpers.buildTotalLink( ['receipts', 'individual-contributions'], function(data, type, row) { - if (row.employer) { + if (row.employer && row.employer !== 'N/A' ) { return { - contributor_employer:row.employer.replace('N/A', 'N-A' ) + contributor_employer:row.employer }; } else { return null; From 814629d09b86364a204c9b1dd1a39e79522e6728 Mon Sep 17 00:00:00 2001 From: John Carroll Date: Thu, 21 Jul 2022 21:34:22 -0400 Subject: [PATCH 3/3] lint fix --- fec/fec/static/js/pages/committee-single.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fec/fec/static/js/pages/committee-single.js b/fec/fec/static/js/pages/committee-single.js index e70d144062..c909e84520 100644 --- a/fec/fec/static/js/pages/committee-single.js +++ b/fec/fec/static/js/pages/committee-single.js @@ -109,7 +109,7 @@ var employerColumns = [ function(data, type, row) { if (row.employer && row.employer !== 'N/A' ) { return { - contributor_employer:row.employer + contributor_employer: row.employer }; } else { return null;