Fix OSA.js dependency ids and checkout extension prefix

This commit is contained in:
Tomek Wytrębowicz 2023-11-21 11:17:44 +01:00 committed by Justin Palmer
parent 8347e7108c
commit 5b16a8abdb
No known key found for this signature in database
GPG Key ID: ACAB7C35AA2577AF
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
window.wp.data.dispatch( window.wc.wcBlocksData.CHECKOUT_STORE_KEY ).__internalSetExtensionData(
'order-source-attribution',
'woocommerce/order-source-attribution',
window.sbjs.get
);

View File

@ -132,7 +132,7 @@ class SourceAttributionBlocksController implements RegisterHooksInterface {
"assets/js/frontend/order-source-attribution-blocks{$this->get_script_suffix()}.js",
WC_PLUGIN_FILE
),
array( 'woocommerce-order-source-attribution-js', 'wp-data-js', 'wc-blocks-checkout-js' ),
array( 'woocommerce-order-source-attribution-js', 'wp-data', 'wc-blocks-checkout' ),
Constants::get_constant( 'WC_VERSION' ),
true
);