diff --git a/views/wishlist.pug b/views/wishlist.pug index d1f5331..db8602f 100644 --- a/views/wishlist.pug +++ b/views/wishlist.pug @@ -80,7 +80,10 @@ block content if item.pledgedBy && item.pledgedBy !== req.user._id span.ugc Pledged for by #{item.pledgedBy} td(data-label='Delete Item') - form.inline(method='POST', action=`/wishlist/${req.params.user}/remove/${item.id}`) + form.inline( + method='POST', + action=`/wishlist/${req.params.user}/${req.user._id === req.params.user ? 'delete' : 'unpledge'}/${item.id}` + ) .field.inline .control.inline button.button.is-text(