mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Do not load paypal sdk for continuation in block
This commit is contained in:
parent
33ed474ae1
commit
3672c5a651
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ const PayPalComponent = ({
|
|||
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
useEffect(() => {
|
||||
if (!loaded) {
|
||||
if (!loaded && !config.scriptData.continuation) {
|
||||
loadPaypalScript(config.scriptData, () => {
|
||||
setLoaded(true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue