remove unnecessary fallbacks

This commit is contained in:
Oliver Eggert
2025-07-25 21:54:28 -07:00
parent 289a0a7c6d
commit 8c8c869cec

View File

@@ -344,8 +344,8 @@ function AmendmentBadge(props: { amendment: any }) {
// Split the status at the colon to create two-color badge
const parts = status.split(':');
const label = shieldsIoEscape(parts[0] || '');
const message = shieldsIoEscape(parts.slice(1).join(':') || '');
const label = shieldsIoEscape(parts[0]);
const message = shieldsIoEscape(parts.slice(1).join(':'));
const badgeUrl = `https://img.shields.io/badge/${label}-${message}-${color}`;