fix(frontend): Change to an optional chain

This commit is contained in:
tigattack
2025-09-25 01:02:47 +01:00
parent c840a3fdcc
commit 6357839619
2 changed files with 3 additions and 4 deletions

View File

@@ -123,8 +123,7 @@ const Packages = () => {
const filtered = packages.filter((pkg) => {
const matchesSearch =
pkg.name.toLowerCase().includes(searchTerm.toLowerCase()) ||
(pkg.description &&
pkg.description.toLowerCase().includes(searchTerm.toLowerCase()));
pkg.description?.toLowerCase().includes(searchTerm.toLowerCase());
const matchesCategory =
categoryFilter === "all" || pkg.category === categoryFilter;