From 649daa3dda7905923f4032453b9d0ca304db90f6 Mon Sep 17 00:00:00 2001 From: nmemmert Date: Fri, 16 Jan 2026 08:56:23 -0500 Subject: [PATCH] fix: calculate Most Prayed For based on Mark Prayed clicks, not prayer count --- src/components/HomePage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/HomePage.tsx b/src/components/HomePage.tsx index c0c91ed..2091547 100644 --- a/src/components/HomePage.tsx +++ b/src/components/HomePage.tsx @@ -100,10 +100,10 @@ export default function HomePage({ prayers, todayCount, onStartPraying, onSelect ? Math.round((answeredPrayers / totalPrayers) * 100) : 0; - // Get most prayed for person/topic + // Get most prayed for person/topic based on lastPrayedFor clicks const prayerForCounts: Record = {}; prayers.forEach(p => { - if (p.prayFor) { + if (p.prayFor && p.lastPrayedFor) { prayerForCounts[p.prayFor] = (prayerForCounts[p.prayFor] || 0) + 1; } });