diff --git a/src/pages/MainPage/Main.tsx b/src/pages/MainPage/Main.tsx index ff46c32..55e2ea7 100644 --- a/src/pages/MainPage/Main.tsx +++ b/src/pages/MainPage/Main.tsx @@ -237,9 +237,9 @@ export default () => { } } - const checkPops = async (application string) => { + const checkPops = async (application: string) => { const response = await getApi('check-popsrecord', application) - const result = response.result[0] + const result = response.result return result > 0 }