Fix bug in dotify

This commit is contained in:
John Lyon-Smith
2018-04-23 16:12:37 -07:00
parent d64f457095
commit 680f7befaa

View File

@@ -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) + "..."