fix did check
This commit is contained in:
@ -124,17 +124,8 @@ function App() {
|
|||||||
loadAIGeneratedContent();
|
loadAIGeneratedContent();
|
||||||
};
|
};
|
||||||
|
|
||||||
// Wait for DID resolution before loading data
|
// Load data immediately with fallback DIDs (skip DID resolution wait)
|
||||||
if (adminDid && aiDid) {
|
|
||||||
loadDataAfterDidResolution();
|
loadDataAfterDidResolution();
|
||||||
} else {
|
|
||||||
// Wait a bit and try again
|
|
||||||
setTimeout(() => {
|
|
||||||
if (adminDid && aiDid) {
|
|
||||||
loadDataAfterDidResolution();
|
|
||||||
}
|
|
||||||
}, 1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Load AI profile from handle
|
// Load AI profile from handle
|
||||||
const loadAiProfile = async () => {
|
const loadAiProfile = async () => {
|
||||||
@ -332,8 +323,8 @@ function App() {
|
|||||||
// Load all chat records from users in admin's user list
|
// Load all chat records from users in admin's user list
|
||||||
const currentAdminDid = adminDid || appConfig.adminDid;
|
const currentAdminDid = adminDid || appConfig.adminDid;
|
||||||
|
|
||||||
// Don't proceed if we don't have a valid DID
|
// Use fallback DID if resolution failed
|
||||||
if (!currentAdminDid || !isValidDid(currentAdminDid)) {
|
if (!currentAdminDid) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -451,8 +442,8 @@ function App() {
|
|||||||
try {
|
try {
|
||||||
const currentAdminDid = adminDid || appConfig.adminDid;
|
const currentAdminDid = adminDid || appConfig.adminDid;
|
||||||
|
|
||||||
// Don't proceed if we don't have a valid DID
|
// Use fallback DID if resolution failed
|
||||||
if (!currentAdminDid || !isValidDid(currentAdminDid)) {
|
if (!currentAdminDid) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user