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

It's a set of Tip objects, not ids
This commit is contained in:
Jarek Radosz 2024-01-22 14:45:47 +01:00 committed by GitHub
parent 62c30e0b5f
commit 108aff663e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -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) => {