Sync stats and calendar updates using shared refresh key

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Avery Felts 2026-01-23 22:03:01 -07:00
parent 39a1e858fb
commit 498b7b4dea

View File

@ -155,7 +155,7 @@ export function Dashboard({ user }: DashboardProps) {
/> />
</div> </div>
<div className="space-y-6"> <div className="space-y-6">
<StatsCard usageData={usageData} substance={preferences.substance} /> <StatsCard key={`stats-${refreshKey}`} usageData={usageData} substance={preferences.substance} />
<QuitPlanCard <QuitPlanCard
plan={preferences.quitPlan} plan={preferences.quitPlan}
onGeneratePlan={handleGeneratePlan} onGeneratePlan={handleGeneratePlan}