Skip to content

Commit

Permalink
Update pushStatusHandler.js
Browse files Browse the repository at this point in the history
Fixes error thrown by #1526
  • Loading branch information
flovilmart committed Apr 19, 2016
1 parent 61b62e4 commit 829802f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pushStatusHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function pushStatusHandler(config) {
results = flatten(results);
results.reduce((memo, result) => {
// Cannot handle that
if (!result.device || !result.device.deviceType) {
if (!result || !result.device || !result.device.deviceType) {
return memo;
}
let deviceType = result.device.deviceType;
Expand Down

0 comments on commit 829802f

Please sign in to comment.