diff --git a/components/search/hearings/HearingHit.tsx b/components/search/hearings/HearingHit.tsx index 633a9a1bc..247d28d35 100644 --- a/components/search/hearings/HearingHit.tsx +++ b/components/search/hearings/HearingHit.tsx @@ -78,6 +78,9 @@ export const HearingHit = ({ hit }: { hit: HearingHitData }) => { navigateToHearing() } + var yesterday = new Date() + yesterday.setDate(yesterday.getDate() - 1) + return ( { {t("video_available", { ns: "search" })} + ) : startsAt > yesterday ? ( + + {t("video_upcoming", { ns: "search" })} + ) : ( {t("video_unavailable", { ns: "search" })} diff --git a/public/locales/en/search.json b/public/locales/en/search.json index 24b906bf6..7b81ef7a2 100644 --- a/public/locales/en/search.json +++ b/public/locales/en/search.json @@ -49,7 +49,8 @@ }, "search_error": "Something went wrong. Please try again. Original message: {{error}}", "video_available": "Video available", - "video_unavailable": "Video and transcript not yet available", + "video_upcoming": "Video not yet posted by the legislature; transcript will be generated once it is available", + "video_unavailable": "Not available: Video and transcript", "location_label": "Location", "agenda_label": "Agenda Topics", "bills_label": "Bills",