Skip to content

Commit

Permalink
Fix lowest price display for active listings
Browse files Browse the repository at this point in the history
  • Loading branch information
MxtOUT committed Jun 18, 2024
1 parent 02c6638 commit cf60993
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/js/Content/Features/Community/MarketHome/CMarketHome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ export default class CMarketHome extends CCommunityBase {
{"childList": true}
);
}

this.onMarketListings.dispatch();
}
}
11 changes: 5 additions & 6 deletions src/js/Content/Modules/ASEventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@ export default class ASEventHandler<T = void> {
}

private invoke(listener: ASEventListener<T>) {
if (this.data) {
listener({data: this.data});
}
listener({data: this.data!});
}

public dispatch(data: T): void {
if (data) {
this.data = data;
}
this.data = data;

for (let listener of this.listeners) {
this.invoke(listener);
}

this.wasDispatched = true;
}
}

0 comments on commit cf60993

Please sign in to comment.