Skip to content

Commit

Permalink
[FIX] 배포 테스트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
nayujin-dev committed Oct 5, 2023
1 parent 972c15e commit c9d0023
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ export default function Login({ navigation }) {
};

const onLoginClick=async()=>{
Alert.alert(
"로그인", // 첫번째 text: 타이틀 제목
"로그인테스트", // 두번째 text: 그 밑에 작은 제목
[{text: '확인', onPress: () => {}}],
{ cancelable: false }
);

try {
const response = await axios.post("http://3.34.212.92:8080/api/user/login",
{
Expand All @@ -47,12 +42,7 @@ export default function Login({ navigation }) {
await AsyncStorage.setItem("characterUrl", JSON.stringify(response.data.data[0].characterUrl));
navigation.navigate('isLogin');
} catch (error) {
Alert.alert(
`${error.response.data}`, // 첫번째 text: 타이틀 제목
"로그인테스트", // 두번째 text: 그 밑에 작은 제목
[{text: '확인', onPress: () => {}}],
{ cancelable: false }
);

if (error.response && error.response.status === 404){
Alert.alert(
"아이디 확인",
Expand Down

0 comments on commit c9d0023

Please sign in to comment.