Any value can be undefined

This commit is contained in:
Franck Royer 2021-08-05 16:01:25 +10:00
parent 8322d24ac1
commit e52e564a31
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 2 deletions

View File

@ -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);