-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: only show twap market price for non final states #5302
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
'-' | ||
) : spotPrice ? ( | ||
const renderMarketPrice = () => { | ||
// Early return for cancelled, warning, or presignature pending states |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, and not from this PR, but withWarning should be the latest or first condition, as it reads more natural, state in CANCELED, PRESIGN or has a warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed this now
|
||
// Check children finalization status | ||
if (children) { | ||
const childrenArray = React.Children.toArray(children) as React.ReactElement<{ order: ParsedOrder }>[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @fairlighteth , great! However, still for some Expired orders I can see a market price.
Examples:
Could you please check why?
@elena-zh the issues should be fixed now: |
1a6e5f0
to
3ad7920
Compare
02cbfe4
to
f449a1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now!
* feat: hide orders table widget * feat: hide orders table widget for limit and twap
Show market price only for active orders