Fix/streak milestone toast property - #2289
Conversation
|
Thank you for submitting your pull request, @Suprita736! 🙌 |
|
Warning Review limit reachedNext included review available in 39 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📝 Pull Request Description
Related Issue
Closes #2288
Summary
Fix streak milestone notifications that were not being propagated after flashcard reviews and sheet-progress saves.
recordActivity()returnsnewlyUnlockedMilestones, but the affected controllers were still reading the oldnewlyUnlockedproperty. This causednewlyUnlockedAchievementsto be empty or undefined even when a milestone was unlocked.This PR:
newlyUnlockedMilestones.newlyUnlockedMilestones.Type of Change
How Has This Been Tested?
newlyUnlockedAchievements.Screenshots (if applicable)
Not applicable — this is a backend data-flow fix.
Checklist