diff --git a/src/components/wallet/CashuWallet.tsx b/src/components/wallet/CashuWallet.tsx index ae21ca4..c45f0c8 100644 --- a/src/components/wallet/CashuWallet.tsx +++ b/src/components/wallet/CashuWallet.tsx @@ -400,7 +400,7 @@ export function CashuWallet() { mintQuoteUnsubscribeRef.current = null; } }; - }, []); + }, [mintQuoteUnsubscribeRef]); // ============================================================================ // RENDER diff --git a/src/contexts/CashuContext.tsx b/src/contexts/CashuContext.tsx index 4442a68..4fc86f9 100644 --- a/src/contexts/CashuContext.tsx +++ b/src/contexts/CashuContext.tsx @@ -21,5 +21,4 @@ export function useCashuContext(): UseCashuReturn { } return context; -} - +} \ No newline at end of file diff --git a/src/hooks/cashu/useMintManager.ts b/src/hooks/cashu/useMintManager.ts index c371eec..0895c95 100644 --- a/src/hooks/cashu/useMintManager.ts +++ b/src/hooks/cashu/useMintManager.ts @@ -89,7 +89,7 @@ export function useMintManager({ description: err instanceof Error ? err.message : 'Unknown error', }); } - }, [mintUrl, coco, mints, toast]); + }, [mintUrl, coco, mints]); // Show remove confirmation modal const handleRemoveMintClick = useCallback((mint: CashuMint) => { @@ -142,7 +142,6 @@ export function useMintManager({ activeMintUrl, handleSetActiveMint, repositories, - toast, refreshMints, ]); @@ -201,7 +200,7 @@ export function useMintManager({ }); } }, - [repositories, toast] + [repositories] ); // Auto-select first mint when mints change, or add default mint if none exist diff --git a/src/hooks/cashu/useWalletTransactions.ts b/src/hooks/cashu/useWalletTransactions.ts index 5d7b0b9..1f22879 100644 --- a/src/hooks/cashu/useWalletTransactions.ts +++ b/src/hooks/cashu/useWalletTransactions.ts @@ -343,8 +343,6 @@ export function useWalletTransactions({ lightningAddressInput, lightningAddressAmount, pendingLightningAddress, - pendingInvoice, - decodedInvoiceAmount, activeMintUrl, toast, getEncodedToken,