Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(ui): display correct fee from probing
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed May 10, 2020
1 parent dc41030 commit 64a006a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions renderer/components/Pay/PaySummaryLightning.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ class PaySummaryLightning extends React.Component {

const nodeAlias = getNodeAlias(payeeNodeKey, nodes)
const totalAmountInSatoshis = CoinBig(exactFee).isFinite()
? CoinBig.sum(amountInSatoshis, convert('msats', 'sats', exactFee)).toString()
: CoinBig.sum(amountInSatoshis, convert('msats', 'sats', maxFee)).toString()
? CoinBig.sum(amountInSatoshis, exactFee).toString()
: CoinBig.sum(amountInSatoshis, maxFee).toString()

return (
<Box {...rest}>
Expand Down
2 changes: 1 addition & 1 deletion utils/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export const getExactFee = routes => {
return null
}
const route = routes.find(r => r.isExact)
return route ? route.totalFeesMsat : null
return route ? convert('msats', 'sats', route.totalFeesMsat) : null
}

/**
Expand Down

0 comments on commit 64a006a

Please sign in to comment.