fix materialized view

This commit is contained in:
Dusan Vojacek
2026-04-10 20:56:42 +02:00
parent eb8dd0368f
commit b8b3de2b70
2 changed files with 20 additions and 2 deletions

View File

@@ -505,6 +505,11 @@ export function useDashboardData(siteId: number | null) {
? slots[liveNowIndex]!.buy_price
: null
const sellNow =
slots.length && liveNowIndex >= 0 && liveNowIndex < slots.length
? slots[liveNowIndex]!.sell_price
: null
return {
slots,
nowIndex: liveNowIndex,
@@ -515,5 +520,6 @@ export function useDashboardData(siteId: number | null) {
reload: load,
liveMetrics,
buyNow,
sellNow,
}
}