From 01b5f35f1daa62000078a46fce6e92e484e8a0ef Mon Sep 17 00:00:00 2001
From: Lim Chee Aun <cheeaun@gmail.com>
Date: Fri, 24 Feb 2023 12:20:31 +0800
Subject: [PATCH] Fix instance is actually object

---
 src/components/compose.jsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/components/compose.jsx b/src/components/compose.jsx
index dd1b2dd9..97247e3c 100644
--- a/src/components/compose.jsx
+++ b/src/components/compose.jsx
@@ -105,7 +105,7 @@ function Compose({
   hasOpener,
 }) {
   console.warn('RENDER COMPOSER');
-  const { masto } = api();
+  const { masto, instance } = api();
   const [uiState, setUIState] = useState('default');
   const UID = useRef(draftStatus?.uid || uid());
   console.log('Compose UID', UID.current);
@@ -113,8 +113,7 @@ function Compose({
   const currentAccount = getCurrentAccount();
   const currentAccountInfo = currentAccount.info;
 
-  const instance = getCurrentInstance();
-  const { configuration } = instance;
+  const { configuration } = getCurrentInstance();
   console.log('⚙️ Configuration', configuration);
 
   const {