From 458c1d94f308dfc7471b75b36a7bbe94e842b719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20CG?= Date: Wed, 30 Oct 2024 15:09:45 +0100 Subject: [PATCH] feat: add fallback value for price stats --- packages/x-components/src/composables/use-alias-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x-components/src/composables/use-alias-api.ts b/packages/x-components/src/composables/use-alias-api.ts index 8e1f264415..7000e6000a 100644 --- a/packages/x-components/src/composables/use-alias-api.ts +++ b/packages/x-components/src/composables/use-alias-api.ts @@ -147,7 +147,7 @@ export function useAliasApi(): UseAliasAPI { return store.state.x.search?.sort ?? ''; }, get priceStats() { - return store.state.x.search?.stats.price; + return store.state.x.search?.stats?.price ?? {}; } }; }