Skip to content

Commit

Permalink
remove extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
chinchang committed May 10, 2024
1 parent 4b10a26 commit a525a5e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/itemService.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ export const itemService = {
batch.update(doc(remoteDb, `users/${window.user.uid}`), {
[`items.${id}`]: true
});
batch.update(doc(remoteDb, `users/${window.user.uid}`), {
[`items.${id}`]: true
});

// Set these items on our cached user object too
window.user.items = window.user.items || {};
window.user.items[id] = true;
Expand Down

0 comments on commit a525a5e

Please sign in to comment.