Skip to content

Commit 7a9e716

Browse files
committed
minimize force refresh for stall
1 parent ff0c72c commit 7a9e716

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/components/inventory/selected_item_info.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,14 @@ export class SelectedItemInfo extends FloatElement {
303303

304304
// If an item was listed, refresh the stall data
305305
if (e.detail?.listingId) {
306-
this.refreshStallData();
306+
this.refreshStallData(true);
307307
}
308308
}
309309

310-
private refreshStallData() {
310+
private refreshStallData(forceRefresh = false) {
311311
if (g_ActiveInventory?.m_owner?.strSteamId) {
312312
gStallFetcher
313-
.fetch({steam_id64: g_ActiveInventory.m_owner.strSteamId}, true)
313+
.fetch({steam_id64: g_ActiveInventory.m_owner.strSteamId}, forceRefresh)
314314
.then((stall) => (this.stall = stall))
315315
.catch((error) => {
316316
console.error('Failed to refresh stall data:', error);

0 commit comments

Comments
 (0)