mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
simplify should_render logic
This commit is contained in:
parent
81bedf3a80
commit
2a099b0634
1 changed files with 1 additions and 4 deletions
|
@ -129,9 +129,6 @@ class OnboardingAssets {
|
||||||
*/
|
*/
|
||||||
private function should_render_onboarding_script(): bool {
|
private function should_render_onboarding_script(): bool {
|
||||||
global $current_section;
|
global $current_section;
|
||||||
if ( 'ppcp-gateway' !== $current_section ) {
|
return 'ppcp-gateway' === $current_section;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue