Skip to content

Commit ca607eb

Browse files
committed
chore: formatting in blabsy.
1 parent cf6e719 commit ca607eb

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

platforms/blabsy/src/components/chat/chat-window.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ export function ChatWindow(): JSX.Element {
119119
void Promise.all(
120120
unreadMessages.map((message) => markAsRead(message.id))
121121
);
122-
}});
122+
}
123+
});
123124

124125
const handleSubmit = async (e: React.FormEvent): Promise<void> => {
125126
e.preventDefault();

platforms/blabsy/src/lib/hooks/useRequireAuth.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { useAuth } from "@lib/context/auth-context";
2-
import type { User } from "@lib/types/user";
3-
import { useRouter } from "next/router";
4-
import { useEffect } from "react";
1+
import { useAuth } from '@lib/context/auth-context';
2+
import type { User } from '@lib/types/user';
3+
import { useRouter } from 'next/router';
4+
import { useEffect } from 'react';
55

66
export function useRequireAuth(redirectUrl?: string): User | null {
77
const { user, loading } = useAuth();
88
const { replace } = useRouter();
99

1010
useEffect(() => {
11-
if (!loading && !user) void replace(redirectUrl ?? "/");
11+
if (!loading && !user) void replace(redirectUrl ?? '/');
1212
// eslint-disable-next-line react-hooks/exhaustive-deps
1313
}, [user, loading]);
1414

0 commit comments

Comments
 (0)