Skip to content

Commit 3bba99c

Browse files
W-19799923: Addressing comments
1 parent b97771a commit 3bba99c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/template-retail-react-app/app/pages/checkout/confirmation.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,9 @@ const CheckoutConfirmation = () => {
508508
<AddressDisplay address={order.billingAddress} />
509509
</Stack>
510510

511-
{order.paymentInstruments[0].paymentMethodId ===
511+
{order.paymentInstruments?.[0]?.paymentMethodId ===
512512
'Salesforce Payments' ? (
513-
order.paymentInstruments[0].c_paymentReference_type ? (
513+
order.paymentInstruments?.[0]?.c_paymentReference_type ? (
514514
<SFPaymentsOrderSummary
515515
paymentInstrument={order.paymentInstruments[0]}
516516
/>

0 commit comments

Comments
 (0)