NostrSigninModal: hold accountId instead of username in the state
This commit is contained in:
@ -22,7 +22,7 @@ function useAccountLookup(acct: string | undefined, opts: UseAccountLookupOpts =
|
||||
|
||||
const { entity: account, isUnauthorized, ...result } = useEntityLookup<Account>(
|
||||
Entities.ACCOUNTS,
|
||||
(account) => account.acct.toLowerCase() === acct?.toLowerCase() || account.nostr.npub === acct,
|
||||
(account) => account.acct.toLowerCase() === acct?.toLowerCase(),
|
||||
() => api.get(`/api/v1/accounts/lookup?acct=${acct}`),
|
||||
{ schema: accountSchema, enabled: !!acct },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user