diff --git a/lib/articlePublisherHelpersPresentation.ts b/lib/articlePublisherHelpersPresentation.ts index cb24cb6..0f5e015 100644 --- a/lib/articlePublisherHelpersPresentation.ts +++ b/lib/articlePublisherHelpersPresentation.ts @@ -59,7 +59,6 @@ export async function buildPresentationEvent( linkWithPreview, `Présentation personnelle : ${presentation}`, `Description de votre contenu : ${contentDescription}`, - `Adresse Bitcoin mainnet (pour le sponsoring) : ${draft.mainnetAddress}`, ].join('\n') // Build profile JSON for metadata (stored in tag, not in content) diff --git a/lib/configStorage.ts b/lib/configStorage.ts index e44379d..2d2a085 100644 --- a/lib/configStorage.ts +++ b/lib/configStorage.ts @@ -214,7 +214,7 @@ export class ConfigStorage { */ async getPlatformLightningAddress(): Promise { const config = await this.getConfig() - return config.platformLightningAddress || DEFAULT_PLATFORM_LIGHTNING_ADDRESS + return config.platformLightningAddress ?? DEFAULT_PLATFORM_LIGHTNING_ADDRESS } /** diff --git a/lib/platformSync.ts b/lib/platformSync.ts index 8a92fe0..55644cc 100644 --- a/lib/platformSync.ts +++ b/lib/platformSync.ts @@ -43,7 +43,7 @@ class PlatformSyncService { const { relaySessionManager } = await import('./relaySessionManager') const activeRelays = await relaySessionManager.getActiveRelays() const initialRelay = activeRelays[0] ?? 'Connecting...' - const totalRelays = activeRelays.length || 1 + const totalRelays = activeRelays.length ?? 1 syncProgressManager.setProgress({ currentStep: 0, totalSteps: totalRelays, completed: false, currentRelay: initialRelay }) try { diff --git a/pages/_app.tsx b/pages/_app.tsx index 7297016..64c9e1d 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -42,7 +42,7 @@ function I18nProvider({ children }: { children: React.ReactNode }): React.ReactE return
Loading...
} - return <>{children} + return children as React.ReactElement } export default function App({ Component, pageProps }: AppProps): React.ReactElement {