Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
verkhohliad committed Aug 1, 2024
1 parent 074814c commit 7b544c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/ShutterTimer/ShutterTimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const ShutterTimer = () => {

const interval = setInterval(() => {
const currentSlot = getSlot(chain.genesisTime);
const match = matches.find((m: any) => m.slot > currentSlot);
const match = matches.find((m: any) => Number(m.slot) > currentSlot);

if (!match) {
setTimeDifference(0);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/ShutterTimer/useGetValidatorRegistryLogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const useGetValidatorRegistryLogs = (chainId: number, lastBlockNumber: nu

allLogs = [...allLogs, ...(logs ?? [])];

if (logs.length < SUB_GRAPH_MAX_QUERY_LOGS) {
if (!logs || logs.length < SUB_GRAPH_MAX_QUERY_LOGS) {
break; // Break the loop if the number of logs fetched is less than 'first', indicating the end of data
}
}
Expand Down

0 comments on commit 7b544c6

Please sign in to comment.