Skip to content

Commit

Permalink
fix: workaround superfluous verb in award notifications (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikkCZ authored Dec 13, 2024
1 parent 37662d0 commit 40e505e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/background/RemotePontoon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ async function updateNotificationsData() {
const userData = (await reponse.json()) as UserDataApiResponse;
const notificationsData: StorageContent['notificationsData'] = {};
for (const notification of userData.notifications.notifications) {
notificationsData[notification.id] = notification;
notificationsData[notification.id] = {
...notification,
verb: notification.verb === 'ignore' ? undefined : notification.verb,
};
}
await saveToStorage({
notificationsData,
Expand Down

0 comments on commit 40e505e

Please sign in to comment.