Fix image fee display in receipts

This commit is contained in:
ekzyis 2023-10-25 23:24:51 +02:00
parent fe7d78038b
commit e9b3ac43dc

View File

@ -25,7 +25,7 @@ function Receipt ({ cost, repetition, imageFees, baseFee, parentId, boost }) {
<td>x 10<sup>{repetition}</sup></td>
<td className='font-weight-light' align='right'>{repetition} {parentId ? 'repeat or self replies' : 'posts'} in 10m</td>
</tr>}
{imageFees &&
{imageFees.fees > 0 &&
<tr>
<td>+ {imageFees.unpaid} x {numWithUnits(imageFees.fees, { abbreviate: false })}</td>
<td align='right' className='font-weight-light'>image fee</td>
@ -111,7 +111,7 @@ function EditReceipt ({ cost, paidSats, imageFees, boost, parentId }) {
<td>{numWithUnits(0, { abbreviate: false })}</td>
<td align='right' className='font-weight-light'>edit fee</td>
</tr>
{imageFees &&
{imageFees.fees > 0 &&
<tr>
<td>+ {imageFees.unpaid} x {numWithUnits(imageFees.fees, { abbreviate: false })}</td>
<td align='right' className='font-weight-light'>image fee</td>