diff --git a/src/features/stats/options/StatsOptions.jsx b/src/features/stats/options/StatsOptions.jsx index 7e7b705f..769f5d41 100644 --- a/src/features/stats/options/StatsOptions.jsx +++ b/src/features/stats/options/StatsOptions.jsx @@ -47,9 +47,8 @@ const Stats = () => { localStorage.setItem('achievements', JSON.stringify([])); localStorage.setItem('achievementTimestamps', JSON.stringify({})); setStats(emptyStats); - // Reset achievements to initial state (all locked, no timestamps) - const resetAchievements = initialAchievements.map((a) => ({ ...a, achieved: false, timestamp: undefined })); - setAchievements(resetAchievements); + // Update achievements based on the empty stats + setAchievements(checkAchievements(emptyStats)); setClearmodal(false); toast(variables.getMessage('toasts.stats_reset')); };