aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Kim <brian@tagg.id>2021-05-17 12:01:22 -0700
committerBrian Kim <brian@tagg.id>2021-05-17 12:01:22 -0700
commit6a74b270d24f04e36821398b83863d5b97e1b44b (patch)
tree0fec39a777eb51608615334cc7568e76b9f10a69 /src
parent37b37f296a59aea43e73f615ae6cb042b2242e87 (diff)
Fixed bugs for plus sign in profile
Diffstat (limited to 'src')
-rw-r--r--src/components/comments/CommentsContainer.tsx2
-rw-r--r--src/services/UserProfileService.ts4
2 files changed, 3 insertions, 3 deletions
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<CommentsContainerProps> = ({
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;