Skip to content

Commit

Permalink
Fix image fee display in receipts
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Oct 25, 2023
1 parent 599c239 commit cccfc03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/fee-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit cccfc03

Please sign in to comment.