diff --git a/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Components/ConnectionButton.js b/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Components/ConnectionButton.js index 63b47dc46..76a5c8fce 100644 --- a/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Components/ConnectionButton.js +++ b/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Components/ConnectionButton.js @@ -8,13 +8,6 @@ import { OnboardingHooks } from '../../../../data/onboarding/hooks'; import BusyStateWrapper from '../../../ReusableComponents/BusyStateWrapper'; import { Notice } from '../../../ReusableComponents/Elements'; -const useIsFirefox = () => { - if ( typeof window === 'undefined' ) { - return false; - } - return window.navigator.userAgent.toLowerCase().indexOf( 'firefox' ) > -1; -}; - /** * Button component that outputs a placeholder button when no onboardingUrl is present yet - the * placeholder button looks identical to the working button, but has no href, target, or @@ -36,8 +29,6 @@ const ButtonOrPlaceholder = ( { children, onClick, } ) => { - const isFirefox = useIsFirefox(); - const buttonProps = { className, variant, @@ -51,20 +42,6 @@ const ButtonOrPlaceholder = ( { buttonProps[ 'data-paypal-onboard-button' ] = 'true'; } - if ( isFirefox ) { - return ( - <> - - - { __( - 'This button may not work in Firefox. Please use another browser, like Chrome, to complete this step.', - 'woocommerce-paypal-payments' - ) } - - - ); - } - return ; };