Skip to content

Commit 59832f8

Browse files
committed
chore: fixed the formatting in blabsy.
1 parent 56bd67b commit 59832f8

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

platforms/blabsy/src/components/layout/auth-layout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ export function AuthLayout({ children }: LayoutProps): JSX.Element {
3030

3131
// If there's an auth error (user not found), redirect to login
3232
useEffect(() => {
33-
if (error)
34-
void replace('/');
35-
33+
if (error) void replace('/');
3634
}, [error, replace]);
3735

3836
if (loading || pending) return <Placeholder />;

platforms/blabsy/src/components/sidebar/sidebar-profile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function SidebarProfile(): JSX.Element {
2626

2727
useEffect(() => {
2828
if (user) {
29-
const { name, username, verified, photoURL } = user ;
29+
const { name, username, verified, photoURL } = user;
3030
setName(name);
3131
setUsername(username);
3232
setVerified(verified);

platforms/blabsy/src/lib/firebase/utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,7 @@ export async function getOrCreateDirectChat(
481481

482482
for (const doc of existingChats.docs) {
483483
const chat = doc.data();
484-
if (chat.participants.includes(targetUserId))
485-
return doc.id;
486-
484+
if (chat.participants.includes(targetUserId)) return doc.id;
487485
}
488486

489487
// If no existing chat, create a new one

0 commit comments

Comments
 (0)