mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-18 13:26:27 +01:00
Fix achievements seen
This commit is contained in:
parent
9c8a584ff9
commit
c46dc66b4c
@ -172,6 +172,13 @@ const useAchievementsState = () =>
|
||||
setNeedsUpdate(false);
|
||||
}, [ needsUpdate ]);
|
||||
|
||||
useEffect(() =>
|
||||
{
|
||||
if(!selectedCategoryCode || (selectedAchievementId === -1)) return;
|
||||
|
||||
setAchievementSeen(selectedCategoryCode, selectedAchievementId);
|
||||
}, [ selectedCategoryCode, selectedAchievementId, setAchievementSeen ]);
|
||||
|
||||
return { achievementCategories, selectedCategoryCode, setSelectedCategoryCode, selectedAchievementId, setSelectedAchievementId, achievementScore, getTotalUnseen, getProgress, getMaxProgress, scaledProgressPercent, selectedCategory, selectedAchievement, setAchievementSeen };
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user