From 7a9e716d8d67c4d2a85fbf0e1270bf60fd01ec52 Mon Sep 17 00:00:00 2001 From: GODrums Date: Mon, 24 Nov 2025 22:21:12 +0100 Subject: [PATCH] minimize force refresh for stall --- src/lib/components/inventory/selected_item_info.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/inventory/selected_item_info.ts b/src/lib/components/inventory/selected_item_info.ts index eb29e3af..c70a4729 100644 --- a/src/lib/components/inventory/selected_item_info.ts +++ b/src/lib/components/inventory/selected_item_info.ts @@ -303,14 +303,14 @@ export class SelectedItemInfo extends FloatElement { // If an item was listed, refresh the stall data if (e.detail?.listingId) { - this.refreshStallData(); + this.refreshStallData(true); } } - private refreshStallData() { + private refreshStallData(forceRefresh = false) { if (g_ActiveInventory?.m_owner?.strSteamId) { gStallFetcher - .fetch({steam_id64: g_ActiveInventory.m_owner.strSteamId}, true) + .fetch({steam_id64: g_ActiveInventory.m_owner.strSteamId}, forceRefresh) .then((stall) => (this.stall = stall)) .catch((error) => { console.error('Failed to refresh stall data:', error);