Skip to content

Commit

Permalink
fix: maybe symbol is null?
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Nov 3, 2023
1 parent 4b648b9 commit 19bc920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit 19bc920

Please sign in to comment.