Update src/js/background/messageHandler.js

Co-authored-by: Maxx Crawford <maxx.crawford@gmail.com>
This commit is contained in:
Andrea Marchesini
2025-10-02 18:19:35 +02:00
committed by GitHub
parent dcc42e2a3a
commit 85ce6375e5
+1 -2
View File
@@ -290,8 +290,7 @@ const messageHandler = {
}
// Check if already scheduled in the past; if so, do not show again.
const achievementsStorage = await browser.storage.local.get({ achievements: [] });
const achievements = achievementsStorage.achievements;
const { achievements } = await browser.storage.local.get({ achievements: [] });
const existing = achievements.find(a => a.name === "survey");
if (existing) {
return;