From 254531f01397bade0c140937521b1220f48fcb0b Mon Sep 17 00:00:00 2001 From: claustra01 Date: Sat, 13 Apr 2024 17:45:13 +0900 Subject: [PATCH] chore: fix function name --- web/src/pages/oauth2.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/web/src/pages/oauth2.tsx b/web/src/pages/oauth2.tsx index 4778785..00a52c5 100644 --- a/web/src/pages/oauth2.tsx +++ b/web/src/pages/oauth2.tsx @@ -9,7 +9,7 @@ const OAuth2 = () => { const query = new URLSearchParams(location.search); const lineId = query.get('id'); - const fetchData = async () => { + const checkUserExist = async () => { try { console.log(`${apiUrl}/users?id=${lineId}`); const response = await fetch(`${apiUrl}/user?id=${lineId}`); @@ -24,9 +24,12 @@ const OAuth2 = () => { } }; + const authGoogle = async () => {}; + useEffect(() => { - fetchData(); - }, [fetchData]); + checkUserExist(); + authGoogle(); + }, [checkUserExist]); return <>; };