We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48c3370 commit e583efcCopy full SHA for e583efc
1 file changed
client-src/index.js
@@ -243,9 +243,13 @@ var onSocketMessage = {
243
sendMessage("Invalid");
244
},
245
/**
246
- * @param {string} hash
+ * @param {string | undefined} _hash
247
*/
248
hash: function hash(_hash) {
249
+ if (!_hash) {
250
+ return;
251
+ }
252
+
253
status.previousHash = status.currentHash;
254
status.currentHash = _hash;
255
0 commit comments