diff --git a/basicswap/ui/page_offers.py b/basicswap/ui/page_offers.py index 94e9906..601be1a 100644 --- a/basicswap/ui/page_offers.py +++ b/basicswap/ui/page_offers.py @@ -161,7 +161,7 @@ def parseOfferFormData(swap_client, form_data, page_data, options={}): page_data['swap_type'] = get_data_entry(form_data, 'swap_type') parsed_data['swap_type'] = page_data['swap_type'] swap_type = swap_type_from_string(parsed_data['swap_type']) - elif parsed_data['coin_to'] in (Coins.XMR, Coins.WOW, Coins.PART_ANON): + elif parsed_data['coin_from'] in swap_client.scriptless_coins or parsed_data['coin_to'] in swap_client.scriptless_coins: parsed_data['swap_type'] = strSwapType(SwapTypes.XMR_SWAP) swap_type = SwapTypes.XMR_SWAP else: @@ -267,7 +267,7 @@ def postNewOfferFromParsed(swap_client, parsed_data): if 'swap_type' in parsed_data: str_swap_type = parsed_data['swap_type'].lower() swap_type = swap_type_from_string(str_swap_type) - elif parsed_data['coin_to'] in (Coins.XMR, Coins.WOW, Coins.PART_ANON): + elif parsed_data['coin_from'] in swap_client.scriptless_coins or parsed_data['coin_to'] in swap_client.scriptless_coins: swap_type = SwapTypes.XMR_SWAP if swap_type == SwapTypes.XMR_SWAP: