From b3c9e9ebf2dfb0c37021879c952cec8d2e5fee55 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Wed, 25 Oct 2023 20:15:25 +0200 Subject: [PATCH] Fix image fees in edit receipt --- 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 f2220f8d..a74505f6 100644 --- a/components/fee-button.js +++ b/components/fee-button.js @@ -109,7 +109,7 @@ function EditReceipt ({ cost, paidSats, imageFees, boost, parentId }) { {imageFees && - + {numWithUnits(imageFees, { abbreviate: false })} + + {imageFees.unpaid} x {numWithUnits(imageFees.fees, { abbreviate: false })} image fees } {boost > 0 && @@ -137,7 +137,7 @@ export function EditFeeButton ({ paidSats, ChildButton, variant, text, alwaysSho formik?.setFieldValue('cost', cost) }, [formik?.getFieldProps('cost').value, cost]) - const imageFees = formik?.getFieldProps('imageFees').value?.fees || { fees: 0 } + const imageFees = formik?.getFieldProps('imageFees').value || { fees: 0 } const totalCost = cost + imageFees.fees const show = alwaysShow || !formik?.isSubmitting