Skip to content

Commit ac5ec5c

Browse files
committed
remove console.log
1 parent 2a6d626 commit ac5ec5c

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

client/src/routes/admin.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,15 @@ export function meta({ loaderData }: Route.MetaArgs): MetaDescriptor[] {
8686
return meta_;
8787
}
8888

89-
export default function AdminPage({ loaderData }: Route.ComponentProps) {
89+
export default function AdminPage() {
9090
const { data: user } = useGetUserQueryState();
91-
92-
useEffect(() => {
93-
console.log({ loaderData });
94-
}, [loaderData]);
95-
9691
if (user == null || !user.isLoggedIn || !user.is_admin) {
9792
return (
9893
<ContainerWrap fullSize>
9994
<LazyNotFound />
10095
</ContainerWrap>
10196
);
10297
}
103-
10498
return (
10599
<ContainerWrap>
106100
<LazyAdminPageContent />

0 commit comments

Comments
 (0)