From 26f4f63cdc368c42d4e394b3706959a24d5906df Mon Sep 17 00:00:00 2001 From: Johnny D Date: Wed, 18 Oct 2023 03:29:38 +1000 Subject: [PATCH] Fix "Immediately" showing in funding cycle card (#4094) --- .../FundingCycleListItems/index.tsx | 16 ++-------------- src/components/v2v3/shared/DiffedItem.tsx | 4 ++-- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/src/components/v2v3/V2V3Project/V2V3FundingCycleSection/FundingCycleDetails/FundingCycleListItems/index.tsx b/src/components/v2v3/V2V3Project/V2V3FundingCycleSection/FundingCycleDetails/FundingCycleListItems/index.tsx index d39dce9967..71bcefa206 100644 --- a/src/components/v2v3/V2V3Project/V2V3FundingCycleSection/FundingCycleDetails/FundingCycleListItems/index.tsx +++ b/src/components/v2v3/V2V3Project/V2V3FundingCycleSection/FundingCycleDetails/FundingCycleListItems/index.tsx @@ -41,13 +41,7 @@ export function FundingCycleListItems({ distributionLimitCurrency: oldDistributionLimitCurrency, } = useContext(V2V3ProjectContext) - // Required for reconfigure review - const wouldStartImmediately = - !oldFundingCycle || oldFundingCycle.duration.eq(0) - - const formattedStartTime = wouldStartImmediately - ? t`Immediately` - : fundingCycle.start + const formattedStartTime = fundingCycle.start ? formatDate(fundingCycle.start.mul(1000)) : undefined @@ -103,13 +97,7 @@ export function FundingCycleListItems({ + {formattedStartTime} } diff --git a/src/components/v2v3/shared/DiffedItem.tsx b/src/components/v2v3/shared/DiffedItem.tsx index 47b074ca3e..409ac4c9fa 100644 --- a/src/components/v2v3/shared/DiffedItem.tsx +++ b/src/components/v2v3/shared/DiffedItem.tsx @@ -57,9 +57,9 @@ export function DiffedItem({ title={ diffStatus === 'old' ? ( Previous value - ) : ( + ) : diffStatus === 'new' ? ( New value - ) + ) : undefined } >