From b1ff45a23e388a83244237b15cab1c6ae2f16b31 Mon Sep 17 00:00:00 2001 From: Isaac Date: Tue, 20 Apr 2021 22:41:25 +0100 Subject: [PATCH] Update new.js --- src/commands/new.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/new.js b/src/commands/new.js index 72f3e46..97dcb5a 100644 --- a/src/commands/new.js +++ b/src/commands/new.js @@ -60,7 +60,7 @@ module.exports = class NewCommand extends Command { let list = tickets.rows.map(row => { if (row.topic) { let description = row.topic.substring(0, 30); - let ellipses = description.length > 30 ? '...' : ''; + let ellipses = row.topic.length > 30 ? '...' : ''; return `<#${row.id}>: \`${description}${ellipses}\``; } else { return `<#${row.id}>`; @@ -171,4 +171,4 @@ module.exports = class NewCommand extends Command { } } -}; \ No newline at end of file +};