From daed067f30bb4c1f65fbd52483d52e05d4f9ffb8 Mon Sep 17 00:00:00 2001 From: StyleZhang Date: Thu, 28 Sep 2023 13:20:56 +0800 Subject: [PATCH] fix: notion binding --- web/hooks/use-pay.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/hooks/use-pay.tsx b/web/hooks/use-pay.tsx index fee4b8fa14950f..0b46b8bf6ae1bc 100644 --- a/web/hooks/use-pay.tsx +++ b/web/hooks/use-pay.tsx @@ -137,13 +137,14 @@ export const CheckModal = () => { const [showPayStatusModal, setShowPayStatusModal] = useState(true) const anthropicConfirmInfo = useAnthropicCheckPay() const freeQuotaConfirmInfo = useCheckFreeQuota() + const notionConfirmInfo = useCheckNotion() const handleCancelShowPayStatusModal = useCallback(() => { setShowPayStatusModal(false) router.replace('/', { forceOptimisticNavigation: false }) }, [router]) - const confirmInfo = anthropicConfirmInfo || freeQuotaConfirmInfo + const confirmInfo = anthropicConfirmInfo || freeQuotaConfirmInfo || notionConfirmInfo if (!confirmInfo || !showPayStatusModal) return null