From f67d4fd916869aea9fed3c6ac608f34ba071d6cb Mon Sep 17 00:00:00 2001
From: Lim Chee Aun <cheeaun@gmail.com>
Date: Fri, 13 Oct 2023 15:46:31 +0800
Subject: [PATCH] Fix id may not be available yet

---
 src/components/account-info.jsx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx
index 2f8e60fc..4014a0d2 100644
--- a/src/components/account-info.jsx
+++ b/src/components/account-info.jsx
@@ -286,6 +286,7 @@ function AccountInfo({
   };
 
   const renderPostingStats = async () => {
+    if (!id) return;
     setPostingStatsUIState('loading');
     try {
       const stats = await memFetchPostingStats(id, masto);