From b9e5a2f3c2bbfd414f077816f5e0572131249ed7 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 2 Jan 2026 10:22:51 -0600 Subject: [PATCH] Fix Lightning payment flow --- src/components/AIProviderConfigDialog.tsx | 55 +++++++++++------------ 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/src/components/AIProviderConfigDialog.tsx b/src/components/AIProviderConfigDialog.tsx index c2a91ed4..c98d4d89 100644 --- a/src/components/AIProviderConfigDialog.tsx +++ b/src/components/AIProviderConfigDialog.tsx @@ -1065,27 +1065,6 @@ export function AIProviderConfigDialog({ ); const renderCreditsContent = () => { - if (lightningInvoice && lightningPaymentId) { - return ( -
- { - setLightningInvoice(null); - setLightningPaymentId(null); - }} - onPaymentCompleted={() => { - setLightningInvoice(null); - setLightningPaymentId(null); - }} - /> -
- ); - } - return (
{/* Credits Balance Display */} @@ -1520,14 +1499,32 @@ export function AIProviderConfigDialog({ {supportsCredits ? ( <> {lightningInvoice ? ( -
- +
+
+ +
+
+ { + setLightningInvoice(null); + setLightningPaymentId(null); + }} + onPaymentCompleted={() => { + setLightningInvoice(null); + setLightningPaymentId(null); + }} + /> +
) : (