mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
@@ -157,7 +157,7 @@ export function togglePinnedItem (user, { item, type, path }, req = {}) {
|
||||
}
|
||||
|
||||
if (isOfficialPinned) {
|
||||
// if an offical item is also present in the user.pinnedItems array
|
||||
// if an official item is also present in the user.pinnedItems array
|
||||
const itemInUserItems = pathExistsInArray(user.pinnedItems, path);
|
||||
|
||||
if (itemInUserItems !== -1) {
|
||||
|
||||
Reference in New Issue
Block a user