mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Make Nostr Auth work
This commit is contained in:
13 files changed
+152
-113
No files matched your search
@@ -25,6 +25,11 @@ export function useCurrentUser() {
|
||||
const users = useMemo(() => {
|
||||
const users: NUser[] = [];
|
||||
|
||||
// Safeguard against undefined or null logins
|
||||
if (!logins || !Array.isArray(logins)) {
|
||||
return users;
|
||||
}
|
||||
|
||||
for (const login of logins) {
|
||||
try {
|
||||
const user = loginToUser(login);
|
||||
|
||||
Reference in new issue
Block a user