From 62285d4492c6d90ed30832e9982db9bae8ecd6a2 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Mon, 30 Aug 2021 16:54:21 -0600 Subject: [PATCH] Use the quote text instead of an [object Object] --- src/endpoints/management/is_tied.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/endpoints/management/is_tied.ts b/src/endpoints/management/is_tied.ts index 42eaf6d..233dac3 100644 --- a/src/endpoints/management/is_tied.ts +++ b/src/endpoints/management/is_tied.ts @@ -19,7 +19,10 @@ export default { let bracket = db[gID].bracket; // Construct the primary body of the message - let content = `The bracket currently has a tie between:\n> ${data.winners.join('\n~~------------------------------------~~\n> ')}`; + let content = `The bracket currently has a tie between:\n> `; + content += data.winners + .map((q:quote) => q.text) + .join('\n~~------------------------------------~~\n> '); // Alert users if all will be eliminated or not if (data.eliminate_all) {