Skip to content

Commit 34db45e

Browse files
authored
Double negate so it also takes care of null
1 parent 6fe85d3 commit 34db45e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParseServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class ParseServer {
181181
// We pass the options and the base class for the adatper,
182182
// Note that passing an instance would work too
183183
const pushController = new PushController();
184-
const hasPushSupport = (pushAdapter && push) !== undefined;
184+
const hasPushSupport = !!(pushAdapter && push);
185185
const hasPushScheduledSupport = hasPushSupport && (scheduledPush === true);
186186

187187
const {

0 commit comments

Comments
 (0)