From 5765ea02765e94aeaa753efb6d9583b40cd75957 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Wed, 2 Jul 2025 11:38:35 +0100 Subject: [PATCH] [Fix] Display fee in sats (#3235) --- lnbits/static/js/payments.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lnbits/static/js/payments.js b/lnbits/static/js/payments.js index efd3668a..8fbcef25 100644 --- a/lnbits/static/js/payments.js +++ b/lnbits/static/js/payments.js @@ -60,10 +60,10 @@ window.PaymentsPageLogic = { sortable: false }, { - name: 'fee', + name: 'fee_sats', align: 'left', label: 'Fee', - field: 'fee', + field: 'fee_sats', sortable: true }, @@ -166,6 +166,8 @@ window.PaymentsPageLogic = { p.extra.wallet_fiat_currency ) } + p.fee_sats = + new Intl.NumberFormat(window.LOCALE).format(p.fee / 1000) + ' sats' return p })