Skip to content

Commit

Permalink
fix(card): check order before acccessing attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed Sep 10, 2020
1 parent af8ada8 commit 263e42c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Success: React.FC<Props> = props => {
encodeURIComponent(
props.type === 'CARD'
? props.providerDetails.everypay.paymentLink
: props.order.attributes
: props.order && props.order.attributes
? props.order.attributes.everypay.paymentLink
: ''
)
Expand Down

0 comments on commit 263e42c

Please sign in to comment.