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:
padreug 2025-08-03 09:22:37 +02:00
parent 35d2eba4ac
commit b9ae4a7309

View file

@ -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)