Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamalshaick committed Apr 6, 2019
1 parent 43f3621 commit 4d007ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/items/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const Item = ({ item, currentUser, addItemToCart, deleteItem }) => {
<p>{item.name}</p>
<SecondaryHeader>{item.price} $</SecondaryHeader>
<span>
{item.user === currentUser.id ? (
{item.user === currentUser._id ? (
<button
id="deleteItem"
onClick={onDelete(item._id)}
Expand Down

0 comments on commit 4d007ed

Please sign in to comment.