Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lucky-fireants-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@reservoir0x/relay-kit-ui': patch
---

Add additional data points to switch wallet event
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,10 @@ export const TransactionModalRenderer: FC<Props> = ({
const activeWalletChainId = await _wallet?.getChainId()

if (fromToken && fromToken?.chainId !== activeWalletChainId) {
onAnalyticEvent?.(EventNames.SWAP_SWITCH_NETWORK)
onAnalyticEvent?.(EventNames.SWAP_SWITCH_NETWORK, {
activeWalletChainId,
chainId: fromToken.chainId
})
await _wallet?.switchChain(fromToken.chainId)
}

Expand Down
Loading