Enable reverse adaptor sig swaps for segwit-less coins.

This commit is contained in:
tecnovert
2023-11-30 21:44:46 +02:00
parent ce578f8025
commit d4a6ad7d6f
6 changed files with 68 additions and 36 deletions

View File

@@ -584,7 +584,7 @@ function set_swap_type_enabled(coin_from, coin_to, swap_type) {
make_hidden = true;
swap_type.classList.add('select-disabled'); // Add the class to the disabled select
} else
if (secret_hash_only_coins.includes(coin_from)) {
if (secret_hash_only_coins.includes(coin_from) && secret_hash_only_coins.includes(coin_to)) {
swap_type.disabled = true;
swap_type.value = 'seller_first';
make_hidden = true;