Skip to content

Commit

Permalink
fix(Receipt): custom title (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree authored Sep 26, 2024
1 parent 7ddc740 commit a20d0ec
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions components/Receipt.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,12 @@ export class Receipt extends React.Component {
<Flex justifyContent="space-between">
<Box>
<H2 fontSize="16px" lineHeight="18px">
{receipt.template?.title || receipt.isRefundOnly ? (
<FormattedMessage defaultMessage="Payment refund" />
) : (
<FormattedMessage id="invoice.donationReceipt" defaultMessage="Payment Receipt" />
)}
{receipt.template?.title ||
(receipt.isRefundOnly ? (
<FormattedMessage defaultMessage="Payment refund" />
) : (
<FormattedMessage id="invoice.donationReceipt" defaultMessage="Payment Receipt" />
))}
</H2>
<div>
{receipt.dateFrom && (
Expand Down

0 comments on commit a20d0ec

Please sign in to comment.