diff --git a/sites/partners/src/pages/listings/[id]/lottery.tsx b/sites/partners/src/pages/listings/[id]/lottery.tsx index d98245424a..1ad1640d27 100644 --- a/sites/partners/src/pages/listings/[id]/lottery.tsx +++ b/sites/partners/src/pages/listings/[id]/lottery.tsx @@ -199,6 +199,10 @@ const Lottery = (props: { listing: Listing | undefined }) => { (event) => event.type === ListingEventsTypeEnum.publicLottery ) if (listing.lotteryStatus === LotteryStatusEnum.releasedToPartners) { + // reverse array to find most recent release date + const lotteryReleaseDate = lotteryActivityLogData + ?.reverse() + ?.find((logItem) => logItem.status === LotteryStatusEnum.releasedToPartners)?.logDate return ( @@ -212,8 +216,8 @@ const Lottery = (props: { listing: Listing | undefined }) => {

{t("listings.lottery.partnerPublishTimestamp", { adminName: t("listings.lottery.partnerPublishTimestampAdmin"), - date: "DATE", - time: "TIME", + date: dayjs(lotteryReleaseDate).format("MM/DD/YYYY"), + time: dayjs(lotteryReleaseDate).format("h:mm a"), portal: t("listings.lottery.partnerPublishTimestampPortal"), })}