diff --git a/routes/wishlist/index.js b/routes/wishlist/index.js index 88f5805..5d37af9 100644 --- a/routes/wishlist/index.js +++ b/routes/wishlist/index.js @@ -84,7 +84,7 @@ module.exports = (db) => { item.pledgedBy = (req.user._id === req.params.user ? undefined : req.user._id); item.note = req.body.note; if (url) item.url = url; - if (!url) item.name = potentialUrl + if (!url) item.name = req.body.itemUrlOrName item.id = uuid(); const doc = await db.get(req.params.user); doc.wishlist.push(item);