From 19bc9205a08661585b588f2f610a3b94da041fa4 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Thu, 2 Nov 2023 17:10:24 -0700 Subject: [PATCH] fix: maybe symbol is null? --- commands/watch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/watch.ts b/commands/watch.ts index acd3703..788da23 100644 --- a/commands/watch.ts +++ b/commands/watch.ts @@ -176,7 +176,7 @@ async function run(bot: Client, message: Message, args: string[]) { pricePercentage: processed.pricePercentage as number, difference: processed.difference as number, cache: results.splice(0, cache_limit), - symbol: results[0].symbol + symbol: results[0]?.symbol }) response = `Successfully added query: ${processed.query}`