Skip to content

Commit

Permalink
fix: error obj removed from headlessais
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustChew committed Sep 28, 2024
1 parent aa98283 commit 8f89f82
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/app/[lang]/(mods-pages)/student/grades/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ import { useQuery } from "@tanstack/react-query";
import { getStudentGrades } from "@/lib/headless_ais/grades";

const StudentGradesPage = () => {
const {
initializing,
getACIXSTORE,
ais,
loading,
error: aisError,
} = useHeadlessAIS();
const { initializing, getACIXSTORE, ais, loading } = useHeadlessAIS();

const {
data: grades,
Expand All @@ -30,7 +24,6 @@ const StudentGradesPage = () => {
},
});
if (!ais.enabled) return <AISNotLoggedIn />;
if (error || aisError) return <AISError />;
if (isLoading || !grades) return <AISLoading />;
return <GradesViewer grades={grades!} />;
};
Expand Down

0 comments on commit 8f89f82

Please sign in to comment.