diff --git a/packages/builder/src/components/grants/ApplicationCard.tsx b/packages/builder/src/components/grants/ApplicationCard.tsx index 2b1e6b1ddf..d378c5dfd5 100644 --- a/packages/builder/src/components/grants/ApplicationCard.tsx +++ b/packages/builder/src/components/grants/ApplicationCard.tsx @@ -37,6 +37,7 @@ export default function ApplicationCard({ ); const isDirectRound = payoutStrategy === ROUND_PAYOUT_DIRECT; + console.log("===> props application", round?.applicationsEndTime); return { round, @@ -60,7 +61,8 @@ export default function ApplicationCard({ props.round && ( <> {formatDateFromSecs(props.round?.applicationsStartTime!)} -{" "} - {!isInfinite(Number(props.round?.applicationsEndTime!)) + {!isInfinite(Number(props.round?.applicationsEndTime!)) && + props.round?.applicationsEndTime ? formatDateFromSecs(props.round?.applicationsEndTime!) : "No End Date"} diff --git a/packages/builder/src/components/grants/rounds/RoundListItem.tsx b/packages/builder/src/components/grants/rounds/RoundListItem.tsx index 9acbae915c..34caa146e0 100644 --- a/packages/builder/src/components/grants/rounds/RoundListItem.tsx +++ b/packages/builder/src/components/grants/rounds/RoundListItem.tsx @@ -53,7 +53,8 @@ export default function RoundListItem({ roundData && ( <> {formatDateFromSecs(roundData.applicationsStartTime)} -{" "} - {!isInfinite(roundData.applicationsEndTime) + {!isInfinite(roundData.applicationsEndTime) && + roundData.applicationsEndTime ? formatDateFromSecs(roundData.applicationsEndTime) : "No End Date"} diff --git a/packages/builder/src/components/rounds/Apply.tsx b/packages/builder/src/components/rounds/Apply.tsx index 73c2b2e0d6..ec63336322 100644 --- a/packages/builder/src/components/rounds/Apply.tsx +++ b/packages/builder/src/components/rounds/Apply.tsx @@ -67,6 +67,7 @@ function Apply() { : undefined; const showErrorModal = applicationError && applicationStatus === ApplicationStatus.Error; + console.log("===> props application", round?.applicationsEndTime); return { roundState, @@ -249,7 +250,8 @@ function Apply() {

Application Period:

{formatDate(props.round.applicationsStartTime * 1000)} -{" "} - {isInfinite(props.round.applicationsEndTime) + {isInfinite(props.round.applicationsEndTime) || + !props.round.applicationsEndTime ? "No End Date" : formatDate(props.round.applicationsEndTime * 1000)}

@@ -258,7 +260,8 @@ function Apply() {

Round Dates:

{formatDate(props.round.roundStartTime * 1000)} -{" "} - {isInfinite(props.round.applicationsEndTime) + {isInfinite(props.round.applicationsEndTime) || + !props.round.applicationsEndTime ? "No End Date" : formatDate(props.round.roundEndTime * 1000)}

diff --git a/packages/builder/src/components/rounds/Show.tsx b/packages/builder/src/components/rounds/Show.tsx index e26b2f527f..20bb6519bb 100644 --- a/packages/builder/src/components/rounds/Show.tsx +++ b/packages/builder/src/components/rounds/Show.tsx @@ -181,7 +181,8 @@ function ShowRound() { roundData && ( <> {formatTimeUTC(roundData.applicationsStartTime)} -{" "} - {isInfinite(roundData.applicationsEndTime) + {isInfinite(roundData.applicationsEndTime) || + !roundData.applicationsEndTime ? "No End Date" : formatTimeUTC(roundData.applicationsEndTime)} @@ -191,7 +192,7 @@ function ShowRound() { roundData && ( <> {formatTimeUTC(roundData.roundStartTime)} -{" "} - {isInfinite(roundData.roundEndTime) + {isInfinite(roundData.roundEndTime) || !roundData.roundEndTime ? "No End Date" : formatTimeUTC(roundData.roundEndTime)} {} diff --git a/packages/builder/src/components/rounds/ViewApplication.tsx b/packages/builder/src/components/rounds/ViewApplication.tsx index ca26dde606..66122851d9 100644 --- a/packages/builder/src/components/rounds/ViewApplication.tsx +++ b/packages/builder/src/components/rounds/ViewApplication.tsx @@ -195,7 +195,8 @@ function ViewApplication() {

Application Period:

{formatDate(props.round.applicationsStartTime * 1000)} -{" "} - {isInfinite(props.round.applicationsEndTime) + {isInfinite(props.round.applicationsEndTime) || + !props.round.applicationsEndTime ? "No End Date" : formatDate(props.round.applicationsEndTime * 1000)}

@@ -204,7 +205,8 @@ function ViewApplication() {

Round Dates:

{formatDate(props.round.roundStartTime * 1000)} -{" "} - {isInfinite(props.round.applicationsEndTime) + {isInfinite(props.round.applicationsEndTime) || + !props.round.applicationsEndTime ? "No End Date" : formatDate(props.round.roundEndTime * 1000)}