From 833549756b4312f361b7d577af5c09b47d0dc374 Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 17 Jun 2025 22:36:33 +0900 Subject: [PATCH] fix did check --- oauth/src/App.tsx | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/oauth/src/App.tsx b/oauth/src/App.tsx index 31311fe..ee70db4 100644 --- a/oauth/src/App.tsx +++ b/oauth/src/App.tsx @@ -124,17 +124,8 @@ function App() { loadAIGeneratedContent(); }; - // Wait for DID resolution before loading data - if (adminDid && aiDid) { - loadDataAfterDidResolution(); - } else { - // Wait a bit and try again - setTimeout(() => { - if (adminDid && aiDid) { - loadDataAfterDidResolution(); - } - }, 1000); - } + // Load data immediately with fallback DIDs (skip DID resolution wait) + loadDataAfterDidResolution(); // Load AI profile from handle const loadAiProfile = async () => { @@ -332,8 +323,8 @@ function App() { // Load all chat records from users in admin's user list const currentAdminDid = adminDid || appConfig.adminDid; - // Don't proceed if we don't have a valid DID - if (!currentAdminDid || !isValidDid(currentAdminDid)) { + // Use fallback DID if resolution failed + if (!currentAdminDid) { return; } @@ -451,8 +442,8 @@ function App() { try { const currentAdminDid = adminDid || appConfig.adminDid; - // Don't proceed if we don't have a valid DID - if (!currentAdminDid || !isValidDid(currentAdminDid)) { + // Use fallback DID if resolution failed + if (!currentAdminDid) { return; }