From d03bc7196b8a00afb3d68a3436923da814f8a20f Mon Sep 17 00:00:00 2001
From: Riccardo Balbo <riccardo0blb@gmail.com>
Date: Sun, 5 Jan 2025 18:23:43 +0100
Subject: [PATCH] add hasSendWallet to bounty pay

---
 components/pay-bounty.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/components/pay-bounty.js b/components/pay-bounty.js
index b434b9257..7547b79a7 100644
--- a/components/pay-bounty.js
+++ b/components/pay-bounty.js
@@ -9,6 +9,7 @@ import { useRoot } from './root'
 import { ActCanceledError, useAct } from './item-act'
 import { useLightning } from './lightning'
 import { useToast } from './toast'
+import { useSendWallets } from '@/wallets/index'
 
 export const payBountyCacheMods = {
   onPaid: (cache, { data }) => {
@@ -49,7 +50,9 @@ export default function PayBounty ({ children, item }) {
   const root = useRoot()
   const strike = useLightning()
   const toaster = useToast()
-  const variables = { id: item.id, sats: root.bounty, act: 'TIP' }
+  const wallets = useSendWallets()
+
+  const variables = { id: item.id, sats: root.bounty, act: 'TIP', hasSendWallet: wallets.length > 0 }
   const act = useAct({
     variables,
     optimisticResponse: { act: { __typename: 'ItemActPaidAction', result: { ...variables, path: item.path } } },