Skip to content

Commit

Permalink
useHoneyEvents.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Anon-im committed Dec 27, 2024
1 parent 109a99a commit 7926148
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/honey/src/app/api/useHoneyEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ export const useHoneyEvents = () => {
typeof burnData[burnDataSize - 1] === "undefined");

const isAllDataEmpty = allData?.[0]?.length === 0;
const isSwapDataEmpty = mintData?.[0]?.length === 0;
const isMintDataEmpty = mintData?.[0]?.length === 0;
const isBurnDataEmpty = burnData?.[0]?.length === 0;

const isAllDataReachingEnd =
isAllDataEmpty ||
(allData && allData[allData.length - 1]?.length < DEFAULT_SIZE);
const isMintDataReachingEnd =
isSwapDataEmpty ||
isMintDataEmpty ||
(mintData && mintData[mintData.length - 1]?.length < DEFAULT_SIZE);
const isBurnDataReachingEnd =
isBurnDataEmpty ||
Expand Down

0 comments on commit 7926148

Please sign in to comment.