From 680f7befaab41e132f6dab5ff6c6750aedb771ce Mon Sep 17 00:00:00 2001 From: John Lyon-Smith Date: Mon, 23 Apr 2018 16:12:37 -0700 Subject: [PATCH] Fix bug in dotify --- mobile/src/util.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mobile/src/util.js b/mobile/src/util.js index ac284a0..3f6077e 100644 --- a/mobile/src/util.js +++ b/mobile/src/util.js @@ -57,7 +57,9 @@ export const pad = (num, size) => { } export const dotify = (s) => { - if (s.length < 30) { + if (!s) { + return "..." + } else if (s.length < 30) { return s } else { return s.substring(0, 26) + "..."