diff --git a/src/components/EditProfileForm.tsx b/src/components/EditProfileForm.tsx
index 4b37d52..c9e2826 100644
--- a/src/components/EditProfileForm.tsx
+++ b/src/components/EditProfileForm.tsx
@@ -255,7 +255,6 @@ export const EditProfileForm: React.FC = () => {
});
} catch (error) {
console.error('Failed to update profile:', error);
- const errorMessage = error instanceof Error ? error.message : 'Unknown error';
toast({
title: 'Error',
description: 'Failed to publish profile. Check your relay connections in Settings > Relays',
diff --git a/src/components/GearSwapItemCard.tsx b/src/components/GearSwapItemCard.tsx
index 9a37850..4083977 100644
--- a/src/components/GearSwapItemCard.tsx
+++ b/src/components/GearSwapItemCard.tsx
@@ -89,7 +89,6 @@ export function GearSwapItemCard({ item, trustScore, salesCount, isFollowing }:
: null;
// Get price type label
- const priceTypeLabel = item.priceType ? PRICE_TYPES[item.priceType]?.label : null;
// Skateboard rating for seller
const sellerRating = getSkateboardRating(salesCount);
@@ -98,7 +97,6 @@ export function GearSwapItemCard({ item, trustScore, salesCount, isFollowing }:
const trustLevel = getTrustLevel(trustScore);
const trustBadge = SELLER_TRUST_BADGES[trustLevel];
- const isOwnListing = user?.pubkey === item.pubkey;
const isSold = item.status === 'sold';
const handleMarkSold = async () => {
diff --git a/src/components/RelatrSettings.tsx b/src/components/RelatrSettings.tsx
index 2e2f256..2758157 100644
--- a/src/components/RelatrSettings.tsx
+++ b/src/components/RelatrSettings.tsx
@@ -63,7 +63,7 @@ export function RelatrSettings() {
});
return;
}
- } catch (e) {
+ } catch {
// Skip invalid JSON
}
}
diff --git a/src/components/SasquatchGuide.tsx b/src/components/SasquatchGuide.tsx
index 1fbfd4f..c1cbfe6 100644
--- a/src/components/SasquatchGuide.tsx
+++ b/src/components/SasquatchGuide.tsx
@@ -583,7 +583,6 @@ function CVMStatus({ connected }: { connected: boolean | null }) {
function ChatText({ text }: { text: string }) {
// Split on markdown links [label](url) and bare URLs
- const parts = text.split(/(\[([^\]]+)\]\((https?:\/\/[^)]+)\)|https?:\/\/\S+)/g);
const elements: React.ReactNode[] = [];
let i = 0;
// Use a regex to find all links in order
diff --git a/src/hooks/useBatchTrustScores.ts b/src/hooks/useBatchTrustScores.ts
index db2d82f..4a59cbd 100644
--- a/src/hooks/useBatchTrustScores.ts
+++ b/src/hooks/useBatchTrustScores.ts
@@ -101,7 +101,7 @@ export function useBatchTrustScores(pubkeys: string[]) {
if (metadata.nip05) {
scores.set(profileEvent.pubkey, 30);
}
- } catch (e) {
+ } catch {
// Ignore JSON parse errors
}
}
diff --git a/src/hooks/useLoggedInAccounts.ts b/src/hooks/useLoggedInAccounts.ts
index 2690545..113a237 100644
--- a/src/hooks/useLoggedInAccounts.ts
+++ b/src/hooks/useLoggedInAccounts.ts
@@ -42,7 +42,7 @@ export function useLoggedInAccounts() {
[{ kinds: [0], authors: loginPubkeys }],
{ signal: AbortSignal.any([signal, AbortSignal.timeout(5000)]) },
);
- } catch (error) {
+ } catch {
console.warn('[useLoggedInAccounts] Primary relay query failed, trying fallback relays...');
}
diff --git a/src/hooks/useSellerInfo.ts b/src/hooks/useSellerInfo.ts
index 6a7ecd5..34a7b97 100644
--- a/src/hooks/useSellerInfo.ts
+++ b/src/hooks/useSellerInfo.ts
@@ -65,7 +65,7 @@ export function useSellerInfo(pubkey: string | undefined) {
{ signal }
).catch(() => [])
);
- } catch (error) {
+ } catch {
// Ignore individual relay errors
}
}
@@ -93,7 +93,7 @@ export function useSellerInfo(pubkey: string | undefined) {
const metadata = JSON.parse(profile.content);
hasNip05 = !!metadata.nip05;
nip05 = metadata.nip05;
- } catch (e) {
+ } catch {
// Ignore JSON parse errors
}
diff --git a/src/pages/CoachDetailPage.tsx b/src/pages/CoachDetailPage.tsx
index e1fd88f..8af3ff2 100644
--- a/src/pages/CoachDetailPage.tsx
+++ b/src/pages/CoachDetailPage.tsx
@@ -96,10 +96,8 @@ export default function CoachDetailPage() {
const isCoach = profile?.profileType === 'coach';
const isFilmer = profile?.profileType === 'filmer';
- const isEditor = profile?.profileType === 'editor';
const isPhotographer = profile?.profileType === 'photographer';
const isBuilder = profile?.profileType === 'builder';
- const isArtist = profile?.profileType === 'artist';
const isGraffiti = profile?.profileType === 'graffiti';
const isTattoo = profile?.profileType === 'tattoo';
const isTrainer = profile?.profileType === 'trainer';
@@ -111,7 +109,6 @@ export default function CoachDetailPage() {
});
const metadata = author.data?.metadata;
- const displayName = metadata?.name ?? genUserName(profile?.pubkey || '');
if (isLoading) {
return