Scheduling infrastructure for absolutely everyone.
Added fix to solve the id TypeError (#19810)
Harshit Singhd40d28291267
diff --git a/packages/features/tips/Tips.tsx b/packages/features/tips/Tips.tsxindex 211f8545613..7961ec2cdf1 100644--- a/packages/features/tips/Tips.tsx+++ b/packages/features/tips/Tips.tsx@@ -173,9 +173,11 @@ function Tips() {const items = localStorage.getItem("removedTipsIds") || "";const itemToRemoveIndex = currentItems.findIndex((item) => item.id === id);+ if (itemToRemoveIndex === -1) return [...currentItems];+localStorage.setItem("removedTipsIds",- `${currentItems[itemToRemoveIndex].id.toString()}${items.length > 0 ? `,${items.split(",")}` : ""}`+ `${currentItems[itemToRemoveIndex].id.toString()}${items.length > 0 ? `,${items}` : ""}`);currentItems.splice(itemToRemoveIndex, 1);return [...currentItems];