From 3439e51c2d64aabc0899bdbf1c777d40feeeca55 Mon Sep 17 00:00:00 2001 From: Canestin Date: Fri, 18 Oct 2024 16:21:34 +0200 Subject: [PATCH] change stuff --- .../Web3Hub/components/Disclaimer/useDisclaimerViewModel.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/ledger-live-mobile/src/newArch/features/Web3Hub/components/Disclaimer/useDisclaimerViewModel.ts b/apps/ledger-live-mobile/src/newArch/features/Web3Hub/components/Disclaimer/useDisclaimerViewModel.ts index cef863baf556..5f10584b554c 100644 --- a/apps/ledger-live-mobile/src/newArch/features/Web3Hub/components/Disclaimer/useDisclaimerViewModel.ts +++ b/apps/ledger-live-mobile/src/newArch/features/Web3Hub/components/Disclaimer/useDisclaimerViewModel.ts @@ -3,15 +3,11 @@ import { AppManifest } from "@ledgerhq/live-common/wallet-api/types"; import { dismissedManifestsAtom } from "LLM/features/Web3Hub/db"; import { useAtom } from "jotai"; -export function useDismissedManifests() { - return useAtom(dismissedManifestsAtom); -} - export default function useDisclaimerViewModel(goToApp: (manifestId: string) => void) { const [isChecked, setIsChecked] = useState(false); const [disclaimerOpened, setDisclaimerOpened] = useState(false); const [disclaimerManifest, setDisclaimerManifest] = useState(); - const [dismissedManifests, setDismissedManifests] = useDismissedManifests(); + const [dismissedManifests, setDismissedManifests] = useAtom(dismissedManifestsAtom); useEffect(() => { if (disclaimerManifest && !!dismissedManifests[disclaimerManifest.id]) {