diff --git a/app/controllers/wallet_controller.rb b/app/controllers/wallet_controller.rb index a7920d4..07de29b 100644 --- a/app/controllers/wallet_controller.rb +++ b/app/controllers/wallet_controller.rb @@ -78,6 +78,7 @@ class WalletController < ApplicationController tx["received"] = true else tx["amount_sats"] = tx["value"] || tx["amt"] + tx["fee"] = tx["type"] == "paid_invoice" ? tx["fee"] : nil tx["datetime"] = Time.at(tx["timestamp"].to_i) tx["title"] = tx["type"] == "paid_invoice" ? "Sent" : "Received" tx["description"] = tx["memo"] || tx["description"] diff --git a/app/views/wallet/transactions.html.erb b/app/views/wallet/transactions.html.erb index 44859e3..5ebc2cc 100644 --- a/app/views/wallet/transactions.html.erb +++ b/app/views/wallet/transactions.html.erb @@ -35,7 +35,8 @@
- <%= tx["datetime"].strftime("%B %e, %H:%M") %> + <%= tx["datetime"].strftime("%B %e, %H:%M") -%> + <% if tx["fee"] && (tx["fee"] > 0) %>, Fee: <%= tx["fee"] %> sats<% end %>