refactor: Simplify loading state check in Market.vue
- Update the loading state check in Market.vue to directly reference marketStore.isLoading, improving code clarity and reducing unnecessary null checks.
This commit is contained in:
parent
35d2eba4ac
commit
b9ae4a7309
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ const needsToLoadMarket = computed(() => {
|
|||
|
||||
// Check if market data is ready (either preloaded or loaded)
|
||||
const isMarketReady = computed(() => {
|
||||
const isLoading = marketStore.isLoading.value ?? false
|
||||
const isLoading = marketStore.isLoading ?? false
|
||||
const ready = marketPreloader.isPreloaded.value ||
|
||||
(marketStore.products.length > 0 && !isLoading)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue