mirror of https://github.com/waku-org/js-waku.git
Any value can be undefined
This commit is contained in:
parent
8322d24ac1
commit
e52e564a31
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue