fix: correctly slice user results

This commit is contained in:
Alejandro Gomez 2023-02-15 08:23:33 +01:00 committed by Kieran
parent 32abaf3fa7
commit 5a810e2048
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -58,7 +58,7 @@ const SearchPage = () => {
onChange={e => setSearch(e.target.value)}
/>
</div>
{keyword && allUsers?.slice(3).map(u => <ProfilePreview actions={<></>} pubkey={u.pubkey} />)}
{keyword && allUsers?.slice(0, 3).map(u => <ProfilePreview actions={<></>} className="card" pubkey={u.pubkey} />)}
{keyword && (
<Timeline
key={keyword}