Skip to content

chore: timeline clarify remaining time #2009

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

Merged
merged 1 commit into from
May 26, 2025
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
5 changes: 2 additions & 3 deletions web/src/pages/Cases/CaseDetails/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,10 @@ const AppealBanner: React.FC = () => {
const { fundedChoices } = useFundingContext();

const text = useMemo(() => {
if (loserSideCountdown)
return `${secondsToDayHourMinute(loserSideCountdown)} left until losing options can be funded`;
if (loserSideCountdown) return `${secondsToDayHourMinute(loserSideCountdown)} remaining to fund losing options`;
// only show if loosing option was funded and winner needs funding, else no action is needed from user
if (winnerSideCountdown && !isUndefined(fundedChoices) && fundedChoices.length > 0)
return `${secondsToDayHourMinute(winnerSideCountdown)} left until winning option can be funded`;
return `${secondsToDayHourMinute(winnerSideCountdown)} remaining to fund winning option`;
return;
}, [loserSideCountdown, winnerSideCountdown, fundedChoices]);

Expand Down
Loading