Skip to content

Commit

Permalink
Show payments recommendation on settings payment main page (woocommer…
Browse files Browse the repository at this point in the history
…ce#50947)

* Show payments recommendation when main settings element is found

* Changelog

* Revert to old logic instead
  • Loading branch information
ilyasfoo authored Aug 26, 2024
1 parent 08f724b commit 99c1980
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,11 @@ export const PaymentRecommendations: React.FC< EmbeddedBodyProps > = ( {
tab,
section,
} ) => {
if ( page === 'wc-settings' && tab === 'checkout' && ! section ) {
if (
window?.wcAdminFeatures?.[
'reactify-classic-payments-settings'
] === true
) {
return null;
}

if (
page === 'wc-settings' &&
tab === 'checkout' &&
( ! section || section === 'main' )
) {
return (
<RecommendationsEligibilityWrapper>
<Suspense fallback={ null }>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: update

Show payments recommendation when main settings element is found

0 comments on commit 99c1980

Please sign in to comment.