diff --git a/lnd_responses/rpc_tx_as_transaction.js b/lnd_responses/rpc_tx_as_transaction.js index 070c0405..e5011d12 100644 --- a/lnd_responses/rpc_tx_as_transaction.js +++ b/lnd_responses/rpc_tx_as_transaction.js @@ -133,7 +133,7 @@ module.exports = tx => { confirmation_height: tx.block_height || undefined, created_at: new Date(Number(tx.time_stamp) * msPerSec).toISOString(), description: tx.label || undefined, - fee: Number(tx.total_fees) || undefined, + fee: Number(tx.total_fees) ?? undefined, id: tx.tx_hash, inputs: inputs.filter(n => !!n), is_confirmed: !!tx.num_confirmations,