Update src/js/background/messageHandler.js
Co-authored-by: Maxx Crawford <maxx.crawford@gmail.com>
This commit is contained in:
committed by
GitHub
parent
dcc42e2a3a
commit
85ce6375e5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user