Hide payments recommendation when no extensions are available (#50949)

* Hide payment recommendations when no extensions are available

* Changelog
This commit is contained in:
Ilyas Foo 2024-08-26 16:53:05 +08:00 committed by GitHub
parent 9e40710482
commit b4322595c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -205,6 +205,10 @@ const PaymentRecommendations: React.FC = () => {
}; };
} ); } );
if ( pluginsList.length === 0 ) {
return null;
}
return ( return (
<Card size="medium" className="woocommerce-recommended-payments-card"> <Card size="medium" className="woocommerce-recommended-payments-card">
<CardHeader> <CardHeader>

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Hide payment recommendations when no extensions are available