Skip to content

Commit

Permalink
fix: add missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
rickimoore committed Jun 10, 2024
1 parent 9f66f9f commit 6f98356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/dashboard/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ const Main: FC<MainProps> = (props) => {
networkError,
})

const { data: valDuties } = useSWRPolling('/api/validator-duties', {
const { data: valDuties } = useSWRPolling<ProposerDuty[]>('/api/validator-duties', {
refreshInterval: halfEpochInterval,
fallbackData: initProposerDuties,
networkError,
})

const { data: logMetrics } = useSWRPolling('/api/priority-logs', {
const { data: logMetrics } = useSWRPolling<LogMetric>('/api/priority-logs', {
refreshInterval: slotInterval / 2,
fallbackData: initLogMetrics,
networkError,
Expand Down

0 comments on commit 6f98356

Please sign in to comment.