From 50225f1c17aea7827c9770802d52f5a331ec797d Mon Sep 17 00:00:00 2001 From: Mathis Date: Tue, 18 Jun 2024 21:22:34 +0200 Subject: [PATCH] feat(account-info): import and use getWallet from account handler The 'getWallet' function has been imported from the account handler service and is now used in account-info component. This addition ensures to fetch information when the component renders. --- src/components/account-info.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/account-info.tsx b/src/components/account-info.tsx index 140abb1..17bf88b 100644 --- a/src/components/account-info.tsx +++ b/src/components/account-info.tsx @@ -14,7 +14,7 @@ import { Label } from "@/components/ui/label"; import type { IUserData } from "@/interfaces/userdata.interface"; import { CopyButton } from "@/components/ui/copy-button"; -import { doDisconnect } from "@/services/account.handler"; +import { doDisconnect, getWallet } from "@/services/account.handler"; import { Bitcoin, Fingerprint, Key, Landmark, Unplug, User, Wallet } from "lucide-react"; import Link from "next/link"; import type React from "react"; @@ -28,6 +28,9 @@ export function AccountInfo({ setUserData: React.Dispatch>; isDisconnected: boolean; }) { + getWallet().then(() => { + console.log("pong !"); + }); if (isDisconnected) { return (