File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
packages/ui/src/components/widgets Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @relayprotocol/relay-kit-ui ' : patch
3+ ---
4+
5+ Fix duplicate deposit success event
Original file line number Diff line number Diff line change @@ -1056,14 +1056,14 @@ const SwapWidgetRenderer: FC<SwapWidgetRendererProps> = ({
10561056 submittedEvents . push ( submittedEvent )
10571057 onAnalyticEvent ?.( submittedEvent , swapEventData )
10581058 } else if (
1059- ( ! submittedEvents . includes ( successEvent ) &&
1060- stepItem . receipt &&
1059+ ! submittedEvents . includes ( successEvent ) &&
1060+ ( ( stepItem . receipt &&
10611061 ! (
10621062 typeof stepItem . receipt === 'object' &&
10631063 'status' in stepItem . receipt &&
10641064 stepItem . receipt . status === 'reverted'
10651065 ) ) ||
1066- stepItem . checkStatus === 'pending'
1066+ stepItem . checkStatus === 'pending' )
10671067 ) {
10681068 onAnalyticEvent ?.( successEvent , swapEventData )
10691069 submittedEvents . push ( successEvent )
You can’t perform that action at this time.
0 commit comments