fix: restore approvalCount state variable in FederationPanel

This commit is contained in:
Jannis Braun
2026-04-20 15:11:47 +02:00
parent 9e3c411e80
commit b0d3ee93b0
@@ -722,7 +722,7 @@ function PendingApprovals({ onCountChange }: { onCountChange?: (count: number) =
export function FederationPanel({ onApprovalCountChange }: { onApprovalCountChange?: (count: number) => void }) {
const addToast = useUIStore((s) => s.addToast);
const [, setApprovalCount] = useState(0);
const [approvalCount, setApprovalCount] = useState(0);
const handleApprovalCountChange = useCallback((count: number) => {
setApprovalCount(count);