Skip to content

Commit

Permalink
fix: notion binding
Browse files Browse the repository at this point in the history
  • Loading branch information
zxhlyh committed Sep 28, 2023
1 parent dbd9366 commit daed067
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/hooks/use-pay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit daed067

Please sign in to comment.