diff --git a/src/components/ProjectDetails.tsx b/src/components/ProjectDetails.tsx
index 5530adc..58c43b4 100644
--- a/src/components/ProjectDetails.tsx
+++ b/src/components/ProjectDetails.tsx
@@ -12,30 +12,42 @@ import { GITHUB } from "../constants/platforms";
import "../styles/ProjectDetails.css";
+import scoredata from '../results.json';
+
+
function ProjectDetails() {
const params = useParams();
const { platform, org, repo, commitHash } = params;
- const { isLoading, error, data } = useQuery({
- queryKey: ["projectData"],
- queryFn: async () => {
- const response = await fetch(
- getScorecardUrl({ platform, org, repo, commitHash }),
- );
- if (response.status >= 500) {
- throw new Error("An error ocurred. Invalid response from server");
- }
- return response.json();
- },
- });
+ // const { isLoading, error, data } = useQuery({
+ // queryKey: ["projectData"],
+ // queryFn: async () => {
+ // // const response = await fetch(
+ // // getScorecardUrl({ platform, org, repo, commitHash }),
+ // // );
+ // // if (response.status >= 500) {
+ // // throw new Error("An error ocurred. Invalid response from server");
+ // // }
+ // // return response.json();
+ // const result = scoredata.find((obj: any) => obj.repo.name === platform + '/' + org + '/' + repo);
+ // if(result === undefined) {
+ // throw new Error("An error ocurred. Repo not found");
+ // }
+ // return result;
+ // },
+ // });
+ const data = scoredata.find((obj: any) => obj.repo.name === platform + '/' + org + '/' + repo);
+ if(data === undefined) {
+ return ;
+ }
- if (isLoading) {
- return ;
- }
+ // if (isLoading) {
+ // return ;
+ // }
- if (error) {
- return ;
- }
+ // if (error) {
+ // return ;
+ // }
return (
<>