Skip to content

Commit

Permalink
fix: OZENSEMBLE-NE
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed Aug 8, 2024
1 parent 4617027 commit ad18461
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions expo/src/services/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,7 @@ class NotificationService {
});
};

scheduleLocalAlarm = async ({
date,
title,
message,
playSound = true,
soundName = "default",
}) => {
scheduleLocalAlarm = async ({ date, title, message, playSound = true, soundName = "default" }) => {
return await Notifications.scheduleNotificationAsync({
content: {
title,
Expand Down Expand Up @@ -175,7 +169,7 @@ class NotificationService {
}
this.listeners[listenerKey] = callback;
return () => {
delete this.listeners[listenerKey];
if (this.listeners[listenerKey]) delete this.listeners[listenerKey];
};
};
}
Expand Down

0 comments on commit ad18461

Please sign in to comment.