1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-23 06:51:12 +02:00

remove extra code

This commit is contained in:
Kushagra Gour
2024-05-10 14:14:37 +05:30
parent 4b10a26a1d
commit a525a5e581

View File

@@ -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;