Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change reference location in api object for agency name on search #2229

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions frontend/src/components/search/SearchResultsListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,13 @@ export default function SearchResultsListItem({
<div className="grid-col tablet:order-3 overflow-hidden font-body-xs">
<span className={metadataBorderClasses}>
<strong>{t("resultsListItem.summary.agency")}</strong>
{opportunity?.summary?.agency_name &&
opportunity?.summary?.agency_code &&
agencyNameLookup
? // Use same exact label we're using for the agency filter list
agencyNameLookup[opportunity?.summary?.agency_code]
: "--"}
{opportunity?.agency ||
(opportunity?.summary?.agency_name &&
opportunity?.summary?.agency_code &&
agencyNameLookup
? // Use same exact label we're using for the agency filter list
agencyNameLookup[opportunity?.summary?.agency_code]
: "--")}
</span>
<span className={metadataBorderClasses}>
<strong>{t("resultsListItem.opportunity_number")}</strong>
Expand Down
Loading