Skip to content

Commit

Permalink
Handle amended filings in legacy ProPublica links
Browse files Browse the repository at this point in the history
  • Loading branch information
chadokruse committed Jan 15, 2025
1 parent 2d05595 commit d3d4456
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion apps/legacy/src/lib/components/Profile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
const orgFinancialStats = $derived(page.financial_stats);
const displayedFilingIsAmendment = $derived(page.filings.slice(0, 7).map((f) => f.filing_is_amendment));
let algolia = $derived(() => {
// Ensure profiles with only 2009, 2010, 2011, or 2012 grants do NOT use Algolia
// Removed 2009-2012 grants from Algolia index to stay under the 6m record limit
Expand Down Expand Up @@ -1334,7 +1336,7 @@
rel="noopener"
data-ga="PDF View Latest"
data-ein={page.ein}
title="View latest filing">{filing.tax_year}</a
title="View latest filing">{filing.tax_year}{filing.filing_is_amendment ? '*' : ''}</a
>
</li>
{/if}
Expand All @@ -1352,6 +1354,14 @@
>
</li>
</ul>
{#if displayedFilingIsAmendment}
<ul class="list-inline">
<li id="js-pdfs" data-ein={page.ein} class="hide-on-med-and-down" style="visibility: hidden;">
<i class="material-icons">picture_as_pdf</i> <span class="show-on-medium-and-down text-muted">PDF</span>
</li>
<li class="grey-text text-darken-1">* Filing is an amendment</li>
</ul>
{/if}
</div>
</div>
</div>
Expand Down

0 comments on commit d3d4456

Please sign in to comment.