Equibit / wallet-ui

0 stars 1 forks source link

Exceeding Share Quantity of a Sell Order results in error but UI still shows balance in negative. #915

Open ravi-bitovi opened 6 years ago

ravi-bitovi commented 6 years ago

When a Seller tries to sell more shares than remaining quantity of a Sell Order, app shows error popup. How ever UI still displays the shares have been issued and remaining shares in negative.

Steps: Login as User and create an Issuance of 100,000 and a sell order of same quantity. Login as User B and create a Buy Offer for 50,000 shares and complete this transactions.

Login as User C and create a Buy Offer for 60,000 shares. As User A, accept the Buy Offer created by User C.

App will throw an error popup but issuance details will start showing negative remaining shares.

Logout and Login again as User A and the remaining shares will start showing correct numbers.

PS: Also, at this moment, if User clicks "Accept" button again for Buy Offer for User C, app will show a different error. We need to show a proper error message on why clicking "accept" failed.

JaneOri commented 6 years ago

I'm not able to sell to the buy offer created by User C:

image

JaneOri commented 6 years ago

Added this message on the right: image