Fresh installs ship with fake prayer logs #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
in appStore.ts and data/mock.ts
The Stats screen and activity graph show five hardcoded logs dated 2025-08-28/2025-08-29 in first launch. Should be [].
@claude i found this in the code but can you verify it pls i might be wrong
Pushed. Here's the reply for the issue:
Confirmed — you found it
The bug is in
initialize()insrc/core/store/appStore.ts:On a fresh install there's no
loadedData, soinitialLogsstays atMOCK_LOGS— the five hardcoded logs dated2025-08-28/2025-08-29fromsrc/core/data/mock.ts. That's why the Stats screen and activity graph show fake activity on first launch instead of an empty state.(
MOCK_DEEDS, the actual list of prayer definitions like Fajr/Dhuhr/etc., is fine to default to — that's real app data, not fake demo history.)Fix
Pushed to branch
claude/fix-fresh-install-fake-logs-19:initialLogsto[]instead ofMOCK_LOGS.MOCK_LOGS(now unused) frommock.ts.Verified
tsc --noEmitandexpo lintboth pass clean (only pre-existing, unrelated warnings remain in other files).