Skip to content

Commit

Permalink
fix: fix the error page just show [object Object]
Browse files Browse the repository at this point in the history
  • Loading branch information
kelp404 committed Apr 8, 2020
1 parent e52ffaf commit 85292cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/frontend/src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ const socket = {
socket.pool[content.id].deferred.resolve(content.body);
}
} else if (socket.pool[content.id]) {
socket.pool[content.id].deferred.reject(content);
if (socket.pool[content.id]) {
socket.pool[content.id].deferred.reject(content.body);
}
}
} else if (content.type === 'notification') {
// The server push the message.
Expand Down

0 comments on commit 85292cb

Please sign in to comment.