swap to channel max

better swap logic
This commit is contained in:
Paul Miller
2023-06-15 17:30:10 -05:00
committed by benthecarman
parent c9647b568c
commit 7cf0ee7d20
3 changed files with 66 additions and 29 deletions

View File

@@ -77,7 +77,6 @@ export function AmountCard(props: {
}) {
// Normally we want to add the fee to the amount, but for max amount we just show the max
const totalOrTotalLessFee = () => {
console.log(props.amountSats, props.fee, props.maxAmountSats);
if (
props.fee &&
props.maxAmountSats &&