Fix null-safe username search in block list

This commit is contained in:
Ryan Salazar
2026-06-26 22:25:32 -04:00
parent 44c27c17b6
commit 2e65ec3348

View File

@@ -27,7 +27,7 @@ export default function BlockListPanel({
if (!q) return blocks;
return blocks.filter(
(b) =>
b.username.toLowerCase().includes(q) ||
(b.username || '').toLowerCase().includes(q) ||
(b.display_name || '').toLowerCase().includes(q)
);
}, [blocks, search]);