mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-09 15:07:10 +02:00
fix: convert potential numbers (cached NIP-11 supported_nips) to strings
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user