From f4685a635d16164f03b2e6714c9256a67a742afe Mon Sep 17 00:00:00 2001 From: KiWan KIM Date: Sun, 6 Oct 2024 17:46:29 +0900 Subject: [PATCH] =?UTF-8?q?[friends-native]=20=EC=B9=B4=ED=86=A1=20?= =?UTF-8?q?=EC=B9=9C=EA=B5=AC=EC=B6=94=EA=B0=80=20api=20=EC=8B=A4=ED=8C=A8?= =?UTF-8?q?=20=EC=97=90=EB=9F=AC=20=ED=95=B8=EB=93=A4=EB=A7=81=20(#188)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RequestFriendsMethodList/index.tsx | 2 -- .../src/app/screens/MainScreen/index.tsx | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/friends-react-native/src/app/screens/MainScreen/RequestFriendsBottomSheetContent/RequestFriendsMethodList/index.tsx b/apps/friends-react-native/src/app/screens/MainScreen/RequestFriendsBottomSheetContent/RequestFriendsMethodList/index.tsx index 217c955..c8d3e6d 100644 --- a/apps/friends-react-native/src/app/screens/MainScreen/RequestFriendsBottomSheetContent/RequestFriendsMethodList/index.tsx +++ b/apps/friends-react-native/src/app/screens/MainScreen/RequestFriendsBottomSheetContent/RequestFriendsMethodList/index.tsx @@ -49,8 +49,6 @@ export const RequestFriendsMethodList = () => { /> 카카오톡으로 친구 초대 - - setRequestFriendModalStep('REQUEST_WITH_NICKNAME')}> { dispatch({ type: 'setFriend', friendId: response.id }); }, + onError: (err) => { + const message = get(err, ['displayMessage']); + Alert.alert(message ? `${message}` : '친구 추가를 실패했습니다.\n잠시 후, 다시 시도해 주세요.'); + }, }, ); });