From d0766fa7c3560e25c47e816c69b79ad2a06fb6e7 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Thu, 3 Feb 2022 00:56:49 -0800 Subject: [PATCH] Use the latest bet time for a feed group --- web/components/contract-feed.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/components/contract-feed.tsx b/web/components/contract-feed.tsx index fe1cbaaa..8455744d 100644 --- a/web/components/contract-feed.tsx +++ b/web/components/contract-feed.tsx @@ -540,7 +540,8 @@ function FeedBetGroup(props: { activityItem: any }) { const [yesBets, noBets] = _.partition(bets, (bet) => bet.outcome === 'YES') - const createdTime = bets[0].createdTime + // Use the time of the last bet for the entire group + const createdTime = bets[bets.length - 1].createdTime return ( <>