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); + }} + /> +
) : (