Skip to content

[Bug]: Perps action buttons display incorrect state when user has position #27916

@joaosantos15

Description

@joaosantos15

Describe the bug

In the AI Market Insights in Perps, the action buttons are wrong when user has an open position: the action buttons should be the same in AI market insight page and market page, ie. “modify” and “Close” when user has an open position

Expected behavior

If the user has a BTC short position, the buttons should be "Modify" and "Close" but currently are "Long" and "Short"

Screenshots/Recordings

No response

Steps to reproduce

  1. Open a short BTC position
  2. Open the BTC perps Market Insights
  3. See that the buttons are long/short instead of modify and close short.

Error messages or log output

Where was this bug found?

Internal release testing

Version

7.71.0

Build number

4182

Build type

Other (please specify exactly where you obtained this build in "Additional Context" section)

Device

simulator

Operating system

iOS

Additional context

No response

Severity

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    RCA-neededIssue root cause analysis neededSev1-highAn issue that may have caused fund loss or access to wallet in the past & may still be ongoingregression-RC-7.71.0Regression bug that was found in release candidate (RC) for release 7.71.0release-7.72.0Issue or pull request that will be included in release 7.72.0release-blockerThis bug is blocking the next releaseteam-social-aiSocial & AI teamtype-bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    Status
    To be triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions