ui: Hide the bid abandon button.

This commit is contained in:
tecnovert
2023-06-14 17:06:52 +02:00
parent cbb3d0ac02
commit 57554d4fec
3 changed files with 10 additions and 1 deletions

View File

@@ -2749,6 +2749,9 @@ class BasicSwap(BaseApp):
self.closeSession(session)
def abandonBid(self, bid_id: bytes) -> None:
if not self.debug:
self.log.error('Can\'t abandon bid %s when not in debug mode.', bid_id.hex())
return
self.log.info('Abandoning Bid %s', bid_id.hex())
self.deactivateBidForReason(bid_id, BidStates.BID_ABANDONED)