Skip to content

Commit 8567abe

Browse files
committed
fix(webpush): remove the redundant userId check
Signed-off-by: 0xsysr3ll <[email protected]>
1 parent 68218fd commit 8567abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/pushSubscriptionHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const verifyAndResubscribePushSubscription = async (
116116
// Subscribe again to generate a fresh push subscription with updated keys and endpoint
117117
await subscribeToPushNotifications(userId, currentSettings);
118118

119-
if (oldEndpoint && userId) {
119+
if (oldEndpoint) {
120120
try {
121121
await axios.delete(
122122
`/api/v1/user/${userId}/pushSubscription/${encodeURIComponent(

0 commit comments

Comments
 (0)