From 430411163df0052af966a4bbcb0bfdbbd5115255 Mon Sep 17 00:00:00 2001 From: Wingy Date: Thu, 29 Oct 2020 23:53:43 -0400 Subject: [PATCH] fix missing first words in wishlist items --- routes/wishlist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);