We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68218fd commit 8567abeCopy full SHA for 8567abe
src/utils/pushSubscriptionHelpers.ts
@@ -116,7 +116,7 @@ export const verifyAndResubscribePushSubscription = async (
116
// Subscribe again to generate a fresh push subscription with updated keys and endpoint
117
await subscribeToPushNotifications(userId, currentSettings);
118
119
- if (oldEndpoint && userId) {
+ if (oldEndpoint) {
120
try {
121
await axios.delete(
122
`/api/v1/user/${userId}/pushSubscription/${encodeURIComponent(
0 commit comments