Make sure paymentGatewaySuggestions is defined

This commit is contained in:
moon 2022-04-11 09:55:18 -07:00
parent edb8b69dc4
commit becc53d645
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ const PaymentRecommendations: React.FC = () => {
);
const supportsWCPayments =
paymentGatewaySuggestions &&
paymentGatewaySuggestions.filter( ( paymentGatewaySuggestion ) => {
return (
paymentGatewaySuggestion.id.indexOf(