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; } });