feat: improve onboarding

This commit is contained in:
2024-01-26 10:17:23 +07:00
parent 74426e13c8
commit 9ba584bf14
14 changed files with 222 additions and 125 deletions

View File

@@ -145,7 +145,7 @@ export class Ark {
cacheUsage: NDKSubscriptionCacheUsage.CACHE_FIRST,
});
if (!profile) throw new Error("user not found");
if (!profile) return null;
return profile;
} catch {
throw new Error("user not found");