@@ -25,6 +25,7 @@ import { BaseModal } from '@/components/ui/BaseModal';
2525import { SwipeableDrawer } from '@/components/ui/SwipeableDrawer' ;
2626import { useIsMobile } from '@/hooks/useIsMobile' ;
2727import { EndaomentProvider } from '@/contexts/EndaomentContext' ;
28+ import { useNonprofitByFundraiseId } from '@/hooks/useNonprofitByFundraiseId' ;
2829
2930// Import inline deposit views
3031import { DepositRSCView } from './DepositRSCView' ;
@@ -89,6 +90,8 @@ function ContributeToFundraiseModalInner({
8990 const walletAvailability = useWalletAvailability ( ) ;
9091 const { exchangeRate } = useExchangeRate ( ) ;
9192 const isMobile = useIsMobile ( ) ;
93+ const { nonprofit } = useNonprofitByFundraiseId ( fundraise . id ) ;
94+ const hasNonprofit = nonprofit !== null ;
9295 const [ amountUsd , setAmountUsd ] = useState ( 100 ) ;
9396 const [ isContributing , setIsContributing ] = useState ( false ) ;
9497 const [ error , setError ] = useState < string | null > ( null ) ;
@@ -468,6 +471,7 @@ function ContributeToFundraiseModalInner({
468471 isProcessing = { isContributing }
469472 error = { error }
470473 walletAvailability = { walletAvailability }
474+ hasNonprofit = { hasNonprofit }
471475 onConfirmPayment = { handleConfirmPayment }
472476 onPaymentRequestSuccess = { handlePaymentRequestSuccess }
473477 onEndaomentPaymentConfirm = { handleEndaomentPaymentConfirm }
0 commit comments