diff --git a/ts/features/newWallet/components/WalletEmptyScreenContent.tsx b/ts/features/newWallet/components/WalletEmptyScreenContent.tsx index 6a8c331cf14..41c89403a22 100644 --- a/ts/features/newWallet/components/WalletEmptyScreenContent.tsx +++ b/ts/features/newWallet/components/WalletEmptyScreenContent.tsx @@ -7,21 +7,13 @@ import { } from "@pagopa/io-app-design-system"; import React from "react"; import { StyleSheet, View } from "react-native"; -import { useFocusEffect } from "@react-navigation/native"; import I18n from "../../../i18n"; import { useIONavigation } from "../../../navigation/params/AppParamsList"; import { ITW_ROUTES } from "../../itwallet/navigation/routes"; -import { - trackWalletAdd, - updatePropertiesWalletRevoked -} from "../../itwallet/analytics"; -import { useIOStore } from "../../../store/hooks"; +import { trackWalletAdd } from "../../itwallet/analytics"; const WalletEmptyScreenContent = () => { const navigation = useIONavigation(); - const store = useIOStore(); - - useFocusEffect(() => updatePropertiesWalletRevoked(store.getState())); const handleAddToWalletButtonPress = () => { trackWalletAdd(); diff --git a/ts/features/newWallet/screens/WalletHomeScreen.tsx b/ts/features/newWallet/screens/WalletHomeScreen.tsx index 4ef5e75d774..0761f144505 100644 --- a/ts/features/newWallet/screens/WalletHomeScreen.tsx +++ b/ts/features/newWallet/screens/WalletHomeScreen.tsx @@ -8,7 +8,7 @@ import { useIONavigation } from "../../../navigation/params/AppParamsList"; import { MainTabParamsList } from "../../../navigation/params/MainTabParamsList"; -import { useIODispatch, useIOSelector, useIOStore } from "../../../store/hooks"; +import { useIODispatch, useIOSelector } from "../../../store/hooks"; import { cgnDetails } from "../../bonus/cgn/store/actions/details"; import { idPayWalletGet } from "../../idpay/wallet/store/actions"; import { ITW_ROUTES } from "../../itwallet/navigation/routes"; @@ -19,7 +19,6 @@ import { WalletPaymentsRedirectBanner } from "../components/WalletPaymentsRedire import { walletToggleLoadingState } from "../store/actions/placeholders"; import { selectWalletCards } from "../store/selectors"; import { - trackAllCredentialProfileAndSuperProperties, trackOpenWalletScreen, trackWalletAdd } from "../../itwallet/analytics"; @@ -29,10 +28,8 @@ import { IOScrollView } from "../../../components/ui/IOScrollView"; type Props = IOStackNavigationRouteProps; const WalletHomeScreen = ({ route }: Props) => { - const store = useIOStore(); useFocusEffect(() => { trackOpenWalletScreen(); - void trackAllCredentialProfileAndSuperProperties(store.getState()); }); const dispatch = useIODispatch();