From cccfc033f5635a030b6c4f28948718e9fc1a6e3a Mon Sep 17 00:00:00 2001 From: ekzyis Date: Wed, 25 Oct 2023 23:24:51 +0200 Subject: [PATCH] Fix image fee display in receipts --- components/fee-button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/fee-button.js b/components/fee-button.js index dc902e4a5..e2a7a6eb7 100644 --- a/components/fee-button.js +++ b/components/fee-button.js @@ -25,7 +25,7 @@ function Receipt ({ cost, repetition, imageFees, baseFee, parentId, boost }) { x 10{repetition} {repetition} {parentId ? 'repeat or self replies' : 'posts'} in 10m } - {imageFees && + {imageFees.fees > 0 && + {imageFees.unpaid} x {numWithUnits(imageFees.fees, { abbreviate: false })} image fee @@ -111,7 +111,7 @@ function EditReceipt ({ cost, paidSats, imageFees, boost, parentId }) { {numWithUnits(0, { abbreviate: false })} edit fee - {imageFees && + {imageFees.fees > 0 && + {imageFees.unpaid} x {numWithUnits(imageFees.fees, { abbreviate: false })} image fee