From fa8764342ef32a2b15fb3a0b4d98b6b2a329cf24 Mon Sep 17 00:00:00 2001 From: gerlofvanek Date: Tue, 19 Nov 2024 23:52:14 +0100 Subject: [PATCH] After successfully placing a bid, go directly to the bid page instead of the offer. --- basicswap/ui/page_offers.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/basicswap/ui/page_offers.py b/basicswap/ui/page_offers.py index 0489ba7..fd39839 100644 --- a/basicswap/ui/page_offers.py +++ b/basicswap/ui/page_offers.py @@ -659,8 +659,16 @@ def page_offer(self, url_split, post_string): extra_options=extra_options, ).hex() + sent_bid_id = swap_client.postBid(offer_id, amount_from, addr_send_from=addr_from, extra_options=extra_options).hex() + if debugind > -1: swap_client.setBidDebugInd(bytes.fromhex(sent_bid_id), debugind) + + self.send_response(302) + self.send_header('Location', f'/bid/{sent_bid_id}') + self.end_headers + return bytes + except Exception as ex: if self.server.swap_client.debug is True: self.server.swap_client.log.error(traceback.format_exc())