From dec286583a14bdb74496e072eb6d927cef640b13 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Tue, 31 May 2022 22:21:45 -0500 Subject: [PATCH] Show bets loading indictor instead of wrong data --- web/components/bets-list.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index e71a72ad..9ccaf204 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -59,7 +59,7 @@ export function BetsList(props: { user: User; hideBetsBefore?: number }) { const allBets = useUserBets(user.id, { includeRedemptions: true }) // Hide bets before 06-01-2022 if this isn't your own profile // NOTE: This means public profits also begin on 06-01-2022 as well. - const bets = (allBets ?? []).filter( + const bets = allBets?.filter( (bet) => bet.createdTime >= (hideBetsBefore ?? 0) ) const [contracts, setContracts] = useState()