Skip to content

Commit

Permalink
Merge pull request #233 from reservoirprotocol/pedro/relay-5584-add-o…
Browse files Browse the repository at this point in the history
…nanalyticevent-to-transactionmodalrenderer

Add onanalyticevent to transactionmodalrenderer
  • Loading branch information
pedromcunha authored Aug 20, 2024
2 parents 6d57e92 + 7a1a4c7 commit 441bd54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/green-emus-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@reservoir0x/relay-kit-ui': patch
---

Fix analytics in TransactionModal
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const SwapModal: FC<SwapModalProps> = (swapModalProps) => {
address={address}
recipient={recipient}
invalidateBalanceQueries={invalidateBalanceQueries}
onAnalyticEvent={onAnalyticEvent}
onValidating={(quote) => {
const steps = quote?.steps
onAnalyticEvent?.(EventNames.TRANSACTION_VALIDATING, {
Expand Down

0 comments on commit 441bd54

Please sign in to comment.