Skip to content

Commit e21bb46

Browse files
committed
fix(webpush): remove backend checks
Signed-off-by: 0xsysr3ll <[email protected]>
1 parent 790ecf4 commit e21bb46

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/utils/pushSubscriptionHelpers.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,7 @@ export const verifyPushSubscription = async (
3636
const { subscription } = await getPushSubscription();
3737

3838
if (!subscription) {
39-
try {
40-
const { data: backendSubscriptions } = await axios.get<
41-
UserPushSubscription[]
42-
>(`/api/v1/user/${userId}/pushSubscriptions`);
43-
return backendSubscriptions.length > 0;
44-
} catch {
45-
return false;
46-
}
39+
return false;
4740
}
4841

4942
const appServerKey = subscription.options?.applicationServerKey;

0 commit comments

Comments
 (0)