From 0c0e96c55fde4f8c8623f0d32c682ac31bad5c57 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Tue, 27 Feb 2024 11:59:54 +0800 Subject: [PATCH] fix: notion binding (#2572) --- web/hooks/use-pay.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/hooks/use-pay.tsx b/web/hooks/use-pay.tsx index 6ec4795940..cd43e8dd99 100644 --- a/web/hooks/use-pay.tsx +++ b/web/hooks/use-pay.tsx @@ -122,7 +122,7 @@ export const useCheckNotion = () => { const notionCode = searchParams.get('code') const notionError = searchParams.get('error') const { data } = useSWR( - canBinding + (canBinding && notionCode) ? `/oauth/data-source/binding/notion?code=${notionCode}` : null, fetchDataSourceNotionBinding,