Skip to content

Wrong message on cancel button when taking an order #1870

@gabbygator184

Description

@gabbygator184

Describe the bug
When a robot is taking an order, the screen where the bond should be locked shows the message on CANCEL button: "Cancel order and unlock bond instantly". If the bond is already locked but the screen is not updated yet, the robot will lose the bond if the button is pressed.

To Reproduce
Steps to reproduce the behavior:

  1. Create 2 robots
  2. Create an order with robot 1
  3. Select the order with robot 2
  4. Move the mouse to CANCEL button and see the message "Cancel order and unlock bond instantly"
  5. Lock the bond and press CANCEL before the screen is updated
  6. The bond will be paid

Expected behavior
The CANCEL button needs to show another message: "You may lose your bond if it is already locked."
Maybe a pop-up confirmation to make it clear:
"Cancel the order?
If the order is cancelled now and you have already tried to pay the invoice, you may lose your bond."

Screenshots

Message on CANCEL button
Image

Pop-up confirmation suggestion
Image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Tor Browser
  • Version: Client v0.7.6 - dex.robosats.org

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions