Skip to content

Commit

Permalink
Hide others shopping items
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorWinberg authored Jun 2, 2021
1 parent 5ca828f commit a503d1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/containers/shoppinglist/ShoppingList.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const active = ({ user, ...state }) => {

return flow(
filter(['checked', false]),
filter((item) => item.uid === 0 || item.uid === user.id),
map((item) => ({
...item,
italic: (user.isCollaboration && item.uid === user.id) || (!user.isCollaboration && item.uid === 0)
Expand Down

0 comments on commit a503d1b

Please sign in to comment.