Fix rendering suggested accounts

This commit is contained in:
Alex Gleason 2024-06-02 22:54:38 -05:00
parent 68375c555e
commit a325908d41
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 2 deletions

View File

@ -69,12 +69,12 @@ async function renderV2Suggestions(c: AppContext, params: PaginatedListParams, s
)
.then((events) => hydrateEvents({ events, store, signal }));
return Promise.all(authors.map((pubkey) => {
return Promise.all(authors.map(async (pubkey) => {
const profile = profiles.find((event) => event.pubkey === pubkey);
return {
source: suggested.has(pubkey) ? 'staff' : 'global',
account: profile ? renderAccount(profile) : accountFromPubkey(pubkey),
account: profile ? await renderAccount(profile) : await accountFromPubkey(pubkey),
};
}));
}