From 64a006ae13ba30c2cc822362dbf926fdb3265f12 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Sun, 10 May 2020 13:37:24 +0200 Subject: [PATCH] fix(ui): display correct fee from probing --- renderer/components/Pay/PaySummaryLightning.js | 4 ++-- utils/crypto.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/renderer/components/Pay/PaySummaryLightning.js b/renderer/components/Pay/PaySummaryLightning.js index def02677996..952e5103c22 100644 --- a/renderer/components/Pay/PaySummaryLightning.js +++ b/renderer/components/Pay/PaySummaryLightning.js @@ -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 ( diff --git a/utils/crypto.js b/utils/crypto.js index e39d65e802b..2d11ba0390c 100644 --- a/utils/crypto.js +++ b/utils/crypto.js @@ -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 } /**