Skip to content

Commit b84aea2

Browse files
committed
Update OptionInstrument.js
1 parent db5d5be commit b84aea2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

objects/broker/robinhood/OptionInstrument.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ class OptionInstrument extends Robinhood {
118118
}
119119
}, (error, response, body) => {
120120
return Robinhood.handleResponse(error, response, body, user.getAuthToken(), res => {
121+
if (!Array.isArray(res)) res = [res];
121122
let array = [];
122123
instruments.forEach(instrument => {
123124
let price = _.find(res, o => {

0 commit comments

Comments
 (0)