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 1
1
import { useEffect , useMemo } from 'react' ;
2
2
import {
3
3
IMTBLWidgetEvents ,
4
+ ConnectEventType ,
4
5
OrchestrationEvent ,
5
6
OrchestrationEventType ,
6
7
RequestOnrampEvent ,
@@ -91,6 +92,14 @@ export function useWidgetEvents(
91
92
return ;
92
93
}
93
94
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
+
94
103
const eventDetail = getCommerceWidgetEvent ( customEvent ) ;
95
104
sendCheckoutEvent ( eventTarget , eventDetail ) ;
96
105
} ;
You can’t perform that action at this time.
0 commit comments