Skip to content

Commit

Permalink
replace optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ishuen committed Oct 11, 2022
1 parent 31a1b18 commit 5c8195d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ const aggTrades = (pubCall, payload, endpoint = '/api/v3/aggTrades') =>

// Convert the array to string to prevent unacceptable encoding
const processSymbols = payload => {
if (payload?.symbols) {
if (payload && payload.hasOwnProperty('symbols')) {
payload.symbols = `["${payload.symbols.join('"')}"]`
}
}
Expand Down

0 comments on commit 5c8195d

Please sign in to comment.