From 655606e2eac0d8a71c566fec7fa4b80333dd1b65 Mon Sep 17 00:00:00 2001 From: Philipp Stracker Date: Thu, 10 Oct 2024 12:24:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A9=20Hide=20GooglePay=20loading=20ani?= =?UTF-8?q?mation=20in=20editor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/js/Block/components/GooglepayButton.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ppcp-googlepay/resources/js/Block/components/GooglepayButton.js b/modules/ppcp-googlepay/resources/js/Block/components/GooglepayButton.js index 368dedf89..4949909bb 100644 --- a/modules/ppcp-googlepay/resources/js/Block/components/GooglepayButton.js +++ b/modules/ppcp-googlepay/resources/js/Block/components/GooglepayButton.js @@ -39,7 +39,9 @@ const GooglepayButton = ( { namespace, buttonConfig, ppcpConfig } ) => { useEffect( () => { if ( googlepayButton ) { - setButtonHtml( googlepayButton.outerHTML ); + const hideLoader = + ''; + setButtonHtml( googlepayButton.outerHTML + hideLoader ); } }, [ googlepayButton ] );