Skip to content

Commit

Permalink
Update OptionInstrument.js
Browse files Browse the repository at this point in the history
  • Loading branch information
torreyleonard committed Mar 21, 2019
1 parent db5d5be commit b84aea2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions objects/broker/robinhood/OptionInstrument.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class OptionInstrument extends Robinhood {
}
}, (error, response, body) => {
return Robinhood.handleResponse(error, response, body, user.getAuthToken(), res => {
if (!Array.isArray(res)) res = [res];
let array = [];
instruments.forEach(instrument => {
let price = _.find(res, o => {
Expand Down

0 comments on commit b84aea2

Please sign in to comment.