🩹 Add missing dependency to useCallback

This commit is contained in:
Philipp Stracker 2025-01-07 17:29:53 +01:00
parent b86ae2b1c7
commit ca2aa4eff1
No known key found for this signature in database

View file

@ -148,7 +148,7 @@ export const useHandleOnboardingButton = ( isSandbox ) => {
// Ensure the onComplete handler is not removed by a PayPal init script.
timerRef.current = setInterval( addHandler, 250 );
},
[ withActivity ]
[ connectViaAuthCode, withActivity ]
);
const removeCompleteHandler = useCallback( () => {