diff --git a/examples/store-reactjs-chat/src/App.js b/examples/store-reactjs-chat/src/App.js index 11edd149ac..e9f176f53a 100644 --- a/examples/store-reactjs-chat/src/App.js +++ b/examples/store-reactjs-chat/src/App.js @@ -112,8 +112,7 @@ function decodeMessage(wakuMessage) { wakuMessage.payload ); - if (!timestamp) return; - if (!text) return; + if (!timestamp || !text || !nick) return; const time = new Date(); time.setTime(timestamp);