fix: convert potential numbers (cached NIP-11 supported_nips) to strings

This commit is contained in:
Alejandro Gómez
2026-03-20 10:52:34 +01:00
parent 40c02cdac7
commit 92ea6e347b

View File

@@ -1,7 +1,7 @@
import { NIPBadge } from "@/components/NIPBadge";
interface RelaySupportedNipsProps {
nips: string[];
nips: (string | number)[];
title?: string;
showTitle?: boolean;
}
@@ -28,7 +28,7 @@ export function RelaySupportedNips({
{nips.map((nip) => (
<NIPBadge
key={nip}
nipNumber={nip.padStart(2, "0")}
nipNumber={String(nip).padStart(2, "0")}
showName={true}
/>
))}