Skip to content

Commit 10ce838

Browse files
authored
Ensure we traverse the payloadJSON properly (#861)
1 parent 863bc0f commit 10ce838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dashboard/Push/PushDetails.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const EXP_STATS_URL = 'http://docs.parseplatform.org/ios/guide/#push-experiments
3939
let getMessage = (payload) => {
4040
if(payload) {
4141
let payloadJSON = JSON.parse(payload);
42-
if (payloadJSON.alert.body) {
42+
if (payloadJSON.alert && payloadJSON.alert.body) {
4343
return payloadJSON.alert.body;
4444
} else if (payloadJSON.alert) {
4545
return payloadJSON.alert;

0 commit comments

Comments
 (0)