Remove console logs

This commit is contained in:
Daniel Dudzic 2024-10-10 12:25:44 +02:00
parent 5f6447d786
commit 1eb754a13b
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
2 changed files with 3 additions and 13 deletions

View file

@ -8,9 +8,6 @@ const GooglepayButton = ( { namespace, buttonConfig, ppcpConfig } ) => {
const [ buttonHtml, setButtonHtml ] = useState( '' );
const [ buttonElement, setButtonElement ] = useState( null );
const [ componentFrame, setComponentFrame ] = useState( null );
const buttonLoader = '<div>Loading Google Pay...</div>';
const isPayPalLoaded = usePayPalScript( namespace, ppcpConfig );
const isGooglepayLoaded = useGooglepayScript(
@ -46,7 +43,7 @@ const GooglepayButton = ( { namespace, buttonConfig, ppcpConfig } ) => {
return (
<div
ref={ setButtonElement }
dangerouslySetInnerHTML={ { __html: buttonHtml || buttonLoader } }
dangerouslySetInnerHTML={ { __html: buttonHtml } }
/>
);
};