tell the user that refund is pending

This commit is contained in:
Sebastian 2023-02-20 13:24:24 -03:00
parent 5ad96b178e
commit 7bb81a008b
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -607,15 +607,20 @@ export function TransactionView({
) : undefined}
{pendingRefund !== undefined && Amounts.isNonZero(pendingRefund) && (
<InfoBox>
{transaction.refundQueryActive ? (
<i18n.Translate>Refund is in progress.</i18n.Translate>
) : (
<i18n.Translate>
Merchant created a refund for this order but was not automatically
picked up.
Merchant created a refund for this order but was not
automatically picked up.
</i18n.Translate>
)}
<Part
title={i18n.str`Offer`}
text={<Amount value={pendingRefund} />}
kind="positive"
/>
{transaction.refundQueryActive ? undefined : (
<div>
<div />
<div>
@ -630,6 +635,7 @@ export function TransactionView({
</Button>
</div>
</div>
)}
</InfoBox>
)}
<Part