mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-06-06 18:51:21 +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";
|
import { NIPBadge } from "@/components/NIPBadge";
|
||||||
|
|
||||||
interface RelaySupportedNipsProps {
|
interface RelaySupportedNipsProps {
|
||||||
nips: string[];
|
nips: (string | number)[];
|
||||||
title?: string;
|
title?: string;
|
||||||
showTitle?: boolean;
|
showTitle?: boolean;
|
||||||
}
|
}
|
||||||
@@ -28,7 +28,7 @@ export function RelaySupportedNips({
|
|||||||
{nips.map((nip) => (
|
{nips.map((nip) => (
|
||||||
<NIPBadge
|
<NIPBadge
|
||||||
key={nip}
|
key={nip}
|
||||||
nipNumber={nip.padStart(2, "0")}
|
nipNumber={String(nip).padStart(2, "0")}
|
||||||
showName={true}
|
showName={true}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user