File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
packages/checkout/widgets-lib/src/widgets/immutable-commerce/hooks Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 11import { useEffect , useMemo } from 'react' ;
22import {
33 IMTBLWidgetEvents ,
4+ ConnectEventType ,
45 OrchestrationEvent ,
56 OrchestrationEventType ,
67 RequestOnrampEvent ,
@@ -91,6 +92,14 @@ export function useWidgetEvents(
9192 return ;
9293 }
9394
95+ // ignore walletconnect provider updated event on CONNECT
96+ // as that is not really consumed and the provider is available to the consumer on success event
97+ // GFI-596
98+ const isConnectProviderUpdatedEvent = customEvent . detail . type === ConnectEventType . WALLETCONNECT_PROVIDER_UPDATED ;
99+ if ( isConnectProviderUpdatedEvent ) {
100+ return ;
101+ }
102+
94103 const eventDetail = getCommerceWidgetEvent ( customEvent ) ;
95104 sendCheckoutEvent ( eventTarget , eventDetail ) ;
96105 } ;
You can’t perform that action at this time.
0 commit comments