Skip to content

Depth Chart Fix#3180

Merged
startailcoon merged 1 commit intodevelopfrom
_FixDepthChartFlatting
Jan 1, 2020
Merged

Depth Chart Fix#3180
startailcoon merged 1 commit intodevelopfrom
_FixDepthChartFlatting

Conversation

@startailcoon
Copy link
Copy Markdown
Contributor

Markets without Asks/Bids would crash DepthChart rendering
Example: SGD_BTS

If flat_bids/flat_asks is empty, length would still return true as an empty array. Check if array is larger than 0 instead.

Markets without Asks/Bids would crash DepthChart rendering
Example: SGD_BTS
@startailcoon
Copy link
Copy Markdown
Contributor Author

Verified

  • Markets without Asks
  • Markets without Bids (inverted BTS_SGD)
  • Markets with settles
  • Markets with settles, inverted
  • Markets in normal stage

@startailcoon startailcoon merged commit 0e8f6a8 into develop Jan 1, 2020
@abitmore abitmore deleted the _FixDepthChartFlatting branch April 20, 2020 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant