From 40c247a8010c13067b557312f49aa0b72db556b8 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Wed, 3 Feb 2021 19:06:17 -0800 Subject: removed useless comment --- src/utils/friends.ts | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src') diff --git a/src/utils/friends.ts b/src/utils/friends.ts index a0ff879a..ba15e087 100644 --- a/src/utils/friends.ts +++ b/src/utils/friends.ts @@ -42,16 +42,6 @@ export const handleFriendUnfriend = async ( dispatch(updateUserXProfileAllScreens(user.userId, state)); }; -/* - * When user logged in clicks on the friend button: - A request is sent. - Which means you have to update the status of their friendshpi to requested - When the status is changed to requested the button should change to requested. - When the button is changed to requested and thr user clicks on it, - a request much go to the backend to delete that request - When that succeeds, their friendship must be updated to no-record again; - When the button is changed to no_record, the add friends button should be displayed again - */ export const handleUnfriend = async ( screenType: ScreenType, friend: ProfilePreviewType, -- cgit v1.2.3-70-g09d2