Skip to content

Fix: null-guard getDailyStreak and topic callbacks#1007

Open
mircealungu wants to merge 1 commit intomasterfrom
fix/sentry-null-progresscontext-selectinterest
Open

Fix: null-guard getDailyStreak and topic callbacks#1007
mircealungu wants to merge 1 commit intomasterfrom
fix/sentry-null-progresscontext-selectinterest

Conversation

@mircealungu
Copy link
Copy Markdown
Member

Fixes two Sentry crashes caused by _getJSON calling callback(null) on network failure:

Sentry issue Location Error
ZEEGUU-WEB-BP ProgressContext.js null.daily_streak
ZEEGUU-WEB-DN useSelectInterest.js spread of null topics

Minimal fix: guard each callback before dereferencing. The long-term solution (global toast on network failure) is tracked in #1006.

Supersedes #1003 (which also fixed App.js — already covered by the promise migration in master).

https://claude.ai/code/session_01Gy24MmyjQbi9P2qunHLWhw

…BP, ZEEGUU-WEB-DN)

Prevents TypeErrors when API calls return null on network failure.
Long-term solution tracked in #1006 (global toast + React Query).

https://claude.ai/code/session_01Gy24MmyjQbi9P2qunHLWhw
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for voluble-nougat-015dd1 ready!

Name Link
🔨 Latest commit 59f30a3
🔍 Latest deploy log https://app.netlify.com/projects/voluble-nougat-015dd1/deploys/69cbdd71aa9adf000836780a
😎 Deploy Preview https://deploy-preview-1007--voluble-nougat-015dd1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants