Skip to content

Commit e1bc825

Browse files
fix disclaimer due to falsy (#1420)
1 parent fa9b304 commit e1bc825

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/app/features/sendpot/hooks/useDidUserBuyTicket.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,9 @@ export const useDidUserBuyTicket = () => {
1010

1111
return useQuery({
1212
queryKey: ['useDidUserBuyTicket', { userJackpotSummary, pendingJackpotTickets }] as const,
13-
enabled:
14-
pendingJackpotTickets.isSuccess &&
15-
userJackpotSummary.isSuccess &&
16-
pendingJackpotTickets.data !== undefined &&
17-
userJackpotSummary.data !== undefined,
13+
enabled: pendingJackpotTickets.isSuccess && userJackpotSummary.isSuccess,
1814
queryFn: async () => {
19-
if (!pendingJackpotTickets.data || !userJackpotSummary.data) {
15+
if (pendingJackpotTickets.data === undefined || !userJackpotSummary.data) {
2016
return false
2117
}
2218
return (

0 commit comments

Comments
 (0)