From 2145f761b511c5c248664ad8dc2d10d3bb616c75 Mon Sep 17 00:00:00 2001
From: Lim Chee Aun <cheeaun@gmail.com>
Date: Tue, 12 Sep 2023 23:56:01 +0800
Subject: [PATCH] Fix wrong API call when switch to account's instance

---
 src/components/account-info.jsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx
index 008aba6b..1d4f8863 100644
--- a/src/components/account-info.jsx
+++ b/src/components/account-info.jsx
@@ -55,7 +55,9 @@ function AccountInfo({
   instance,
   authenticated,
 }) {
-  const { masto } = api();
+  const { masto } = api({
+    instance,
+  });
   const [uiState, setUIState] = useState('default');
   const isString = typeof account === 'string';
   const [info, setInfo] = useState(isString ? null : account);