From 4bfc7183ab4b1deb2d17c3a86fbf380fec97245a Mon Sep 17 00:00:00 2001 From: Michael Chappell <7581002+mchappell@users.noreply.github.com> Date: Mon, 28 Oct 2024 13:10:00 +0000 Subject: [PATCH] fix(extension): [LW-11737] send shared wallets co-sign confirmation click (#1479) --- .../components/SendTransactionDrawer/Footer.tsx | 4 +++- packages/common/src/analytics/types.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/browser-extension-wallet/src/views/browser-view/features/send-transaction/components/SendTransactionDrawer/Footer.tsx b/apps/browser-extension-wallet/src/views/browser-view/features/send-transaction/components/SendTransactionDrawer/Footer.tsx index 4e4137c5c..099aedfd0 100644 --- a/apps/browser-extension-wallet/src/views/browser-view/features/send-transaction/components/SendTransactionDrawer/Footer.tsx +++ b/apps/browser-extension-wallet/src/views/browser-view/features/send-transaction/components/SendTransactionDrawer/Footer.tsx @@ -122,7 +122,9 @@ export const Footer = withAddressBookContext( const event = isSharedWallet ? 'SharedWalletsSendTxConfirmationConfirmClick' : 'SendTransactionConfirmationConfirmClick'; - sendEventToPostHog(PostHogAction[event]); + builtTxData.importedSharedWalletTx + ? sendEventToPostHog(PostHogAction.SharedWalletsCosignTxConfirmationClick) + : sendEventToPostHog(PostHogAction[event]); break; } case Sections.SUCCESS_TX: { diff --git a/packages/common/src/analytics/types.ts b/packages/common/src/analytics/types.ts index 73eb5affa..fecddbe5a 100644 --- a/packages/common/src/analytics/types.ts +++ b/packages/common/src/analytics/types.ts @@ -299,6 +299,7 @@ export enum PostHogAction { SharedWalletsCosignTxCancelClick = 'shared wallets | co-sign | co-sign transaction | cancel | click', SharedWalletsCosignTxSummaryConfirmClick = 'shared wallets | co-sign | co-sign tx summary | confirm | click', SharedWalletsCosignTxSummaryCancelClick = 'shared wallets | co-sign | co-sign tx summary | cancel | click', + SharedWalletsCosignTxConfirmationClick = 'shared wallets | co-sign | co-sign tx confirmation | confirm | click', SharedWalletsSendClick = 'shared wallets | send | click', SharedWalletsSendTxDataReviewTxClick = 'shared wallets | send | transaction data | review transaction | click', SharedWalletsSendTxSummaryConfirmClick = 'shared wallets | send | transaction summary | confirm | click',