From 346279a14166c5b9728264a653e2ee4cb6eef15c Mon Sep 17 00:00:00 2001 From: Sterling Archer Date: Thu, 18 Jun 2026 23:55:46 -0700 Subject: [PATCH] Clear friend profile/steps cache on friends list update --- index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.html b/index.html index f7690c0..8f6e59a 100644 --- a/index.html +++ b/index.html @@ -940,6 +940,8 @@ function loadFriendsRealtime() { const myFriendsRef = collection(db, 'friends', currentUser.uid, 'list'); const unsubFriends = onSnapshot(myFriendsRef, async (snap) => { friendsData = {}; + friendProfiles = {}; + friendSteps = {}; snap.forEach(d => { friendsData[d.id] = d.data(); }); const approvedUids = Object.entries(friendsData) .filter(([uid, data]) => data.approved === true && data.enabled === true)