From b1736bbd404df91a0150c06985998ac1575c317d Mon Sep 17 00:00:00 2001 From: pythcoiner Date: Tue, 31 Dec 2024 15:12:22 +0100 Subject: [PATCH] export transactions: output a blank if fee is 0 --- liana-gui/src/export.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/liana-gui/src/export.rs b/liana-gui/src/export.rs index ed8d2219..842d107d 100644 --- a/liana-gui/src/export.rs +++ b/liana-gui/src/export.rs @@ -305,6 +305,11 @@ impl State { let value = value as f64 / 100_000_000.0; let fee = fee as f64 / 100_000_000.0; let block = tx.height.map(|h| h.to_string()).unwrap_or("".to_string()); + let fee = if fee != 0.0 { + fee.to_string() + } else { + "".into() + }; let line = format!( "{},{},{},{},{},{}\n",