diff --git a/frontend/src/apis/loginAPI.js b/frontend/src/apis/loginAPI.js index b9e433730..3b8c853a5 100644 --- a/frontend/src/apis/loginAPI.js +++ b/frontend/src/apis/loginAPI.js @@ -29,9 +29,9 @@ const apiPost = async (url, payload) => { if(result.status !== 200){ throw new Error('HTTP Status Error '+result.status) } - if(result.data.state === 'warning') { - return { success: true, result: error } - } + if(result.data.state === 'warning') { + return { success: true, result: error } + } if(result.data.state !== 'success'){ throw new Error(result.data.msg) } @@ -66,4 +66,4 @@ const loginAPI = { }, } -export default loginAPI \ No newline at end of file +export default loginAPI