Skip to content

Commit

Permalink
refactor(BcDataWrapper): replace hardcoded seconds per Slot with `c…
Browse files Browse the repository at this point in the history
…hain specific seconds`
  • Loading branch information
marcel-bitfly committed Jan 10, 2025
1 parent f386d2c commit 6ae6907
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/components/bc/DataWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const {
getUser,
isLoggedIn,
} = useUserStore()
const { tick } = useInterval(12)
const { networkInfo } = useNetworkStore()
const { secondsPerSlot } = networkInfo.value
const { tick } = useInterval(secondsPerSlot)
const { refreshLatestState } = useLatestStateStore()
await useAsyncData('latest_state', () => refreshLatestState(), {
Expand Down

0 comments on commit 6ae6907

Please sign in to comment.