From 9445ad3f8fb720530e5c37f735123aef45071a9f Mon Sep 17 00:00:00 2001 From: John Costa Date: Sat, 15 Nov 2025 15:32:57 +0000 Subject: [PATCH] fix: showing only signatures with comments --- packages/frontend/src/pages/Testimonies.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/pages/Testimonies.tsx b/packages/frontend/src/pages/Testimonies.tsx index 9a5cba9..b0debec 100644 --- a/packages/frontend/src/pages/Testimonies.tsx +++ b/packages/frontend/src/pages/Testimonies.tsx @@ -7,9 +7,12 @@ import { usePetitions } from "@/state"; const Testimonies = () => { const { signatures: allSignatures } = usePetitions(); - const signatures = allSignatures.filter( - (s) => s.name == null || s.comment == null, - ); + const signatures = allSignatures + .filter((s) => s.comment != null) + .map((s) => ({ + ...s, + name: s.name ?? "Anonymous", + })); const totalCount = signatures.length;