diff --git a/routes/wishlist/index.js b/routes/wishlist/index.js index 5f73b95..ff0bffc 100644 --- a/routes/wishlist/index.js +++ b/routes/wishlist/index.js @@ -79,7 +79,7 @@ module.exports = (db) => { } catch (err) { req.flash('error', err.toString()); } - item.name = (productData ? productData.name : req.body.itemUrlOrName); + item.name = (productData ? productData.name : ''); item.addedBy = req.user._id; item.pledgedBy = (req.user._id === req.params.user ? undefined : req.user._id); item.note = req.body.note;