From c1f28bb6b903fa24b2b72e051fff7a7e33f58c53 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 24 Jan 2016 19:14:14 +0000 Subject: [PATCH] hide 'unknown screen' warning --- src/components/structures/MatrixChat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 799cd58d93..80489085ed 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -655,7 +655,7 @@ module.exports = React.createClass({ } } else { - console.error("Unknown screen : %s", screen); + if (screen) console.error("Unknown screen : %s", screen); } },