Skip to content

Commit 5c8195d

Browse files
committed
replace optional
1 parent 31a1b18 commit 5c8195d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http-client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ const aggTrades = (pubCall, payload, endpoint = '/api/v3/aggTrades') =>
328328

329329
// Convert the array to string to prevent unacceptable encoding
330330
const processSymbols = payload => {
331-
if (payload?.symbols) {
331+
if (payload && payload.hasOwnProperty('symbols')) {
332332
payload.symbols = `["${payload.symbols.join('"')}"]`
333333
}
334334
}

0 commit comments

Comments
 (0)