From 62cdbb8da35a3a7e0199344a05d48d501da36be1 Mon Sep 17 00:00:00 2001 From: Tom Quirk <12551741+tomquirk@users.noreply.github.com> Date: Fri, 13 Oct 2023 07:01:54 -0700 Subject: [PATCH] fix: upcoming tab fixes (#4093) --- .../components/CurrentUpcomingSubPanel.tsx | 11 ++++++++++- .../useFormatConfigurationExtensionSection.ts | 5 ++++- .../contractReader/useProjectUpcomingFundingCycle.ts | 10 ++++++++-- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/components/v2v3/V2V3Project/ProjectDashboard/components/CyclesPayoutsPanel/components/CurrentUpcomingSubPanel.tsx b/src/components/v2v3/V2V3Project/ProjectDashboard/components/CyclesPayoutsPanel/components/CurrentUpcomingSubPanel.tsx index ba99877366..738884560f 100644 --- a/src/components/v2v3/V2V3Project/ProjectDashboard/components/CyclesPayoutsPanel/components/CurrentUpcomingSubPanel.tsx +++ b/src/components/v2v3/V2V3Project/ProjectDashboard/components/CyclesPayoutsPanel/components/CurrentUpcomingSubPanel.tsx @@ -63,7 +63,16 @@ export const CurrentUpcomingSubPanel = ({ ) - if (info.type === 'upcoming' && info.cycleUnlocked) { + if ( + info.type === 'upcoming' && + info.cycleUnlocked && + /** + * Always show 'upcoming' tab if it's FC 1 + * (which happens when Scheduled Launch is used, + * mustStartAtOrAfter is in the future) + */ + info.cycleNumber !== 1 + ) { return (