Skip to content

A platform for community discussion. Free, open, simple.

FIX: User-tips regression in #25361 (#25367)

Jarek Radosz108aff663ec4
diff --git a/app/assets/javascripts/discourse/app/services/user-tips.js b/app/assets/javascripts/discourse/app/services/user-tips.js
index f45e89ba3fe..005881a5a17 100644
--- a/app/assets/javascripts/discourse/app/services/user-tips.js
+++ b/app/assets/javascripts/discourse/app/services/user-tips.js
@@ -13,11 +13,12 @@ export default class UserTips extends Service {
#shouldRenderSet = new TrackedSet();
#updateRenderedId() {
- if (this.#availableTips.has(this.#renderedId)) {
+ const tipsArray = [...this.#availableTips];
+ if (tipsArray.find((tip) => tip.id === this.#renderedId)) {
return;
}
- const newId = [...this.#availableTips]
+ const newId = tipsArray
.sortBy("priority")
.reverse()
.find((tip) => {