Skip to content

Commit

Permalink
Merge pull request #2876 from woocommerce/PCP-3996-unsuccessfully-pay…
Browse files Browse the repository at this point in the history
…ment-with-fastlane-error-on-console-and-broken-env

Unsuccessfully payment with Fastlane, error on console and broken env (3996)
  • Loading branch information
InpsydeNiklas authored Dec 6, 2024
2 parents 4484386 + a10000a commit 6f85c53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { registerPlugin } from '@wordpress/plugins';
import { useEffect, useCallback, useState, useRef } from '@wordpress/element';
import { useSelect } from '@wordpress/data';
import { PAYMENT_STORE_KEY } from '@woocommerce/block-data';
import PayPalInsights from '../../../../ppcp-axo/resources/js/Insights/PayPalInsights';
import { STORE_NAME } from '../stores/axoStore';
import usePayPalCommerceGateway from '../hooks/usePayPalCommerceGateway';
Expand Down Expand Up @@ -149,6 +148,7 @@ const usePaymentMethodTracking = ( axoConfig, eventTracking ) => {
const isInitialMount = useRef( true );

const activePaymentMethod = useSelect( ( select ) => {
const { PAYMENT_STORE_KEY } = window.wc.wcBlocksData;
return select( PAYMENT_STORE_KEY )?.getActivePaymentMethod();
}, [] );

Expand Down

0 comments on commit 6f85c53

Please sign in to comment.