From dd6fff7297132af2f6c61ecba75187ec056e8506 Mon Sep 17 00:00:00 2001 From: refi93 Date: Tue, 7 Nov 2023 17:54:25 +0100 Subject: [PATCH] feat(extension): track manual re-sync and hd wallet discovery --- .../settings/components/SettingsWalletBase.tsx | 16 ++++++++++++++-- .../components/HardwareWalletFlow.tsx | 9 +++++++++ .../components/WalletSetupWizard.tsx | 10 ++++++++++ packages/common/src/analytics/types.ts | 3 +++ 4 files changed, 36 insertions(+), 2 deletions(-) diff --git a/apps/browser-extension-wallet/src/views/browser-view/features/settings/components/SettingsWalletBase.tsx b/apps/browser-extension-wallet/src/views/browser-view/features/settings/components/SettingsWalletBase.tsx index c634abb085..1dfe5636a3 100644 --- a/apps/browser-extension-wallet/src/views/browser-view/features/settings/components/SettingsWalletBase.tsx +++ b/apps/browser-extension-wallet/src/views/browser-view/features/settings/components/SettingsWalletBase.tsx @@ -15,6 +15,7 @@ import { useAnalyticsContext, useBackgroundServiceAPIContext } from '@providers' import { useSearchParams, useObservable, Button } from '@lace/common'; import { walletRoutePaths } from '@routes/wallet-paths'; import { PostHogAction } from '@providers/AnalyticsProvider/analyticsTracker'; +import uniq from 'lodash/uniq'; const { Title } = Typography; @@ -58,7 +59,7 @@ export const SettingsWalletBase = ({ const { t } = useTranslation(); const { addressesDiscoverer } = useAddressesDiscoverer(); - const { environmentName, inMemoryWallet } = useWalletStore(); + const { environmentName, inMemoryWallet, walletInfo } = useWalletStore(); const { AVAILABLE_CHAINS } = config(); const unspendable = useObservable(inMemoryWallet.balance.utxo.unspendable$); @@ -116,7 +117,18 @@ export const SettingsWalletBase = ({