Skip to content

Commit

Permalink
fix singular/plural for invoice deposit notification (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
SatsAllDay authored Oct 3, 2023
1 parent 62b53e1 commit 65fa3cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function NostrZap ({ n }) {
function InvoicePaid ({ n }) {
return (
<div className='fw-bold text-info ms-2 py-1'>
<Check className='fill-info me-1' />{numWithUnits(n.earnedSats, { abbreviate: false })} were deposited in your account
<Check className='fill-info me-1' />{numWithUnits(n.earnedSats, { abbreviate: false, unitSingular: 'sat was', unitPlural: 'sats were' })} deposited in your account
<small className='text-muted ms-1 fw-normal' suppressHydrationWarning>{timeSince(new Date(n.sortTime))}</small>
{n.invoice.comment && <small className='d-block ms-4 ps-1 mt-1 mb-1 text-muted fw-normal'><Text>{n.invoice.comment}</Text></small>}
</div>
Expand Down

0 comments on commit 65fa3cf

Please sign in to comment.