From e52e564a31f4aba56777fd5bf6c89a45ac09d22b Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Thu, 5 Aug 2021 16:01:25 +1000 Subject: [PATCH] Any value can be undefined --- examples/store-reactjs-chat/src/App.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);