From 2585017905dbb62d7668d84328b4fcc3b492b298 Mon Sep 17 00:00:00 2001 From: Stixx Date: Sat, 29 Jun 2024 00:44:06 +0200 Subject: [PATCH] style: lint --- src/components/DrawPDFFields/index.tsx | 4 ++-- src/utils/nostr.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/DrawPDFFields/index.tsx b/src/components/DrawPDFFields/index.tsx index 7b4d233..b5211f9 100644 --- a/src/components/DrawPDFFields/index.tsx +++ b/src/components/DrawPDFFields/index.tsx @@ -74,7 +74,7 @@ export const DrawPDFFields = (props: Props) => { const parsePdfPages = async () => { const pdfFiles: PdfFile[] = [] - for (let file of selectedFiles) { + for (const file of selectedFiles) { if (file.type.toLowerCase().includes('pdf')) { const data = await readPdf(file) const pages = await pdfToImages(data) @@ -99,7 +99,7 @@ export const DrawPDFFields = (props: Props) => {
+ }} className={`${styles.pdfImageWrapper} ${selectedTool ? styles.drawing : ''}`}>
) diff --git a/src/utils/nostr.ts b/src/utils/nostr.ts index 48d369e..ffa5d99 100644 --- a/src/utils/nostr.ts +++ b/src/utils/nostr.ts @@ -92,7 +92,7 @@ export const queryNip05 = async ( if (!match) throw new Error('Invalid nip05') // Destructure the match result, assigning default value '_' to name if not provided - const [_, name = '_', domain] = match + const [name = '_', domain] = match // Construct the URL to query the NIP-05 data const url = `https://${domain}/.well-known/nostr.json?name=${name}`