mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix(i18n): pass path to wrongItemPath string, fixes #10403
This commit is contained in:
@@ -1907,7 +1907,7 @@ api.movePinnedItem = {
|
|||||||
let currentPinnedItemPath = user.pinnedItemsOrder[currentIndex];
|
let currentPinnedItemPath = user.pinnedItemsOrder[currentIndex];
|
||||||
|
|
||||||
if (currentIndex === -1) {
|
if (currentIndex === -1) {
|
||||||
throw new BadRequest(res.t('wrongItemPath', req.language));
|
throw new BadRequest(res.t('wrongItemPath', {path}, req.language));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove the one we will move
|
// Remove the one we will move
|
||||||
|
|||||||
Reference in New Issue
Block a user