From 5b715ef46f1f08932c336b5ba232badb14d304f6 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Mon, 19 Jan 2026 11:18:43 +0700 Subject: [PATCH] Fix getMockPriceHistory function name in offers page --- app/pages/catalog/offers/index.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/pages/catalog/offers/index.vue b/app/pages/catalog/offers/index.vue index 5141a36..dbcafc9 100644 --- a/app/pages/catalog/offers/index.vue +++ b/app/pages/catalog/offers/index.vue @@ -80,8 +80,15 @@ const goToProduct = (productId: string) => { navigateTo(localePath(`/catalog/offers/${productId}`)) } -// Price history - empty for now, will be populated from real data -const getPriceHistory = (_uuid: string): number[] => [] +// Mock price history generator (seeded by uuid for consistent results) +const getMockPriceHistory = (uuid: string): number[] => { + const seed = uuid.split('').reduce((acc, char) => acc + char.charCodeAt(0), 0) + const basePrice = 100 + (seed % 200) + return Array.from({ length: 7 }, (_, i) => { + const variation = Math.sin(seed + i * 0.5) * 20 + Math.cos(seed * 0.3 + i) * 10 + return Math.round(basePrice + variation) + }) +} // Initialize await init()