From afea0734e97fbd12d199738d02e23fe004a6a02b Mon Sep 17 00:00:00 2001 From: Greg Ross Date: Mon, 9 Jul 2018 14:46:37 -0400 Subject: [PATCH] Avoid console errors if the input isn't a strong. (#261) --- js/devel/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/devel/app.js b/js/devel/app.js index 337f0ee..851d3d0 100644 --- a/js/devel/app.js +++ b/js/devel/app.js @@ -63,6 +63,10 @@ var ContactRenderer = { } }, generateFirstCharacter: function (input) { + if (typeof input !== 'string') { + return '?'; + } + if (input.charAt(0) === '+') { return '#'; }