From 6a74b270d24f04e36821398b83863d5b97e1b44b Mon Sep 17 00:00:00 2001 From: Brian Kim Date: Mon, 17 May 2021 12:01:22 -0700 Subject: Fixed bugs for plus sign in profile --- src/components/comments/CommentsContainer.tsx | 2 +- src/services/UserProfileService.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/components/comments/CommentsContainer.tsx b/src/components/comments/CommentsContainer.tsx index 595ec743..d839ef38 100644 --- a/src/components/comments/CommentsContainer.tsx +++ b/src/components/comments/CommentsContainer.tsx @@ -49,7 +49,7 @@ const CommentsContainer: React.FC = ({ count += 1 + comments[i].replies_count; } return count; - } + }; useEffect(() => { const loadComments = async () => { diff --git a/src/services/UserProfileService.ts b/src/services/UserProfileService.ts index 8b7b78e1..19d353aa 100644 --- a/src/services/UserProfileService.ts +++ b/src/services/UserProfileService.ts @@ -442,7 +442,7 @@ export const verifyExistingInformation = async ( const form = new FormData(); if (email) { form.append('email', email); - } + } if (username) { form.append('username', username); } @@ -453,7 +453,7 @@ export const verifyExistingInformation = async ( }, body: form, }); - return response.status===200; + return response.status === 200; } catch (error) { console.log(error); return false; -- cgit v1.2.3-70-g09d2