Skip to content

Commit

Permalink
style: format code with prettier (#1245)
Browse files Browse the repository at this point in the history
Format code with prettier

This commit fixes the style issues introduced in 92ad9f7 according to the output
from Prettier.

Details: None

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] authored Aug 11, 2023
1 parent 92ad9f7 commit e12e4a4
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/components/Notification/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ function Notifications() {
return () => unsubscribe();
}, []);

async function handleRemoveNotifiction(currentUserUid, targetUserUid, accept) {
async function handleRemoveNotifiction(
currentUserUid,
targetUserUid,
accept,
) {
const batch = db.batch();
const friendRequestRef = db
.collection("users")
Expand Down Expand Up @@ -108,16 +112,13 @@ function Notifications() {
});

await handleRemoveNotifiction(currentUserUid, targetUserUid, true);
await batch
.commit()
.catch((error) => {
enqueueSnackbar(`Error Occurred: ${error}`, {
variant: "error",
});
await batch.commit().catch((error) => {
enqueueSnackbar(`Error Occurred: ${error}`, {
variant: "error",
});
});
}


return (
<>
<SideBar />
Expand Down

0 comments on commit e12e4a4

Please sign in to comment.