Open osama-ahmed220 opened 1 year ago
Why Currently, usePrice.ts file getting data index by min value index, sometime it gets -1 index which is throwing error.
How Checking dataIndex if it is -1 then first index should get the price otherwise selected index.
Thanks for this PR @osama-ahmed220. Would it be possible to amend this PR so we check for indices with a value of < 0 instead rather than a test on just -1?
< 0
-1
Why Currently, usePrice.ts file getting data index by min value index, sometime it gets -1 index which is throwing error.
How Checking dataIndex if it is -1 then first index should get the price otherwise selected index.