fix materialized view
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user