diff --git a/src/subscriptions.js b/src/subscriptions.js index d9fef895df19593f91a47e2909dd3dc69208fecf..79577612857ccc72e7ea980d382fbbcae1604bcd 100644 --- a/src/subscriptions.js +++ b/src/subscriptions.js @@ -54,7 +54,7 @@ export default class Subscriptions { const sub = await this.registration.pushManager.getSubscription(); if (!sub) return null; - return sub && sub.endpoint; + return sub.endpoint; }; toggle = async () => {