Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Dec 16, 2024
1 parent d5b4abb commit 233c1c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion components/views/ConnectExtension.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export default function ConnectExtension({ wallet }: ConnectExtensionProps) {
rpc
.request(FclRequest.EXEC_SERVICE, { service })
.then(() => {
telemetry.trackWalletConnected(wallet.uid, FCL_SERVICE_METHODS.EXT)
telemetry.trackWalletConnected({
walletUid: wallet.uid,
serviceMethod: FCL_SERVICE_METHODS.WC,
})
setLastUsed(wallet)
handleCancel()
})
Expand Down
5 changes: 4 additions & 1 deletion components/views/ScanConnect/ScanConnectDesktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export default function ScanConnectDesktop({
const { setLastUsed } = useWalletHistory()
const telemetry = useTelemetry()
const { uri, connecting, error, isLoading } = useWcUri(() => {
telemetry.trackWalletConnected(wallet.uid, FCL_SERVICE_METHODS.WC)
telemetry.trackWalletConnected({
walletUid: wallet.uid,
serviceMethod: FCL_SERVICE_METHODS.WC,
})
setLastUsed(wallet)
handleCancel()
})
Expand Down
5 changes: 4 additions & 1 deletion components/views/ScanConnect/ScanConnectMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export default function ScanConnectMobile({
const { setLastUsed } = useWalletHistory()
const telemetry = useTelemetry()
const { uri, connecting, error, isLoading } = useWcUri(() => {
telemetry.trackWalletConnected(wallet.uid, FCL_SERVICE_METHODS.WC)
telemetry.trackWalletConnected({
walletUid: wallet.uid,
serviceMethod: FCL_SERVICE_METHODS.WC,
})
setLastUsed(wallet)
handleCancel()
})
Expand Down

0 comments on commit 233c1c2

Please sign in to comment.