Skip to content

Instant trade doesn't update market orders on asset buy/sell flip #3775

Description

@grctest

Describe the bug

On the instant trade spotlight page when you change CNY_BTS to BTS_CNY by clicking the middle button:

Image

It doesn't fetch the opposite side of the market.

When you refresh the page it does fetch the correct side of the market.

To Reproduce
Steps to reproduce the behavior:

Go to the instant trade page.

Enter an amount of an asset to sell.

View the orders which will be involved in your transaction.

Click the flip asset button between the 2 amount fields.

See that the market orders do not change as expected.

Refresh the page, see that the new order of assets has affected the market orders list correctly.

Expected behavior

When you flip CNY_BTS to BTS_CNY you're given the other side of the market immediately.

Desktop (please complete the following information):

bts.exchange

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions