Skip to content

Commit

Permalink
Hide payments recommendation when no extensions are available (woocom…
Browse files Browse the repository at this point in the history
…merce#50949)

* Hide payment recommendations when no extensions are available

* Changelog
  • Loading branch information
ilyasfoo authored Aug 26, 2024
1 parent 9e40710 commit b432259
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ const PaymentRecommendations: React.FC = () => {
};
} );

if ( pluginsList.length === 0 ) {
return null;
}

return (
<Card size="medium" className="woocommerce-recommended-payments-card">
<CardHeader>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Hide payment recommendations when no extensions are available

0 comments on commit b432259

Please sign in to comment.