fix: Validate user object before accessing DID and clarify error message for missing identity.

This commit is contained in:
Christomatt
2026-01-29 00:08:29 +01:00
parent c47b0141f5
commit 491eb07fea
+1 -1
View File
@@ -150,7 +150,7 @@ export default function ChatPage() {
if (!did) throw new Error('User not found'); if (!did) throw new Error('User not found');
} }
if (!user.did) throw new Error('User DID missing'); if (!user || !user.did) throw new Error('User identity not loaded or DID missing');