Skip to content

Commit

Permalink
Update DebugTab.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinwloring1988 committed Dec 15, 2024
1 parent a976a25 commit aa35591
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/components/settings/debug/DebugTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,12 @@ export default function DebugTab() {
throw new Error('Failed to fetch repository information');
}

const localCommitData = await localCommitResponse.json();
// Define the expected structure of the commit data
interface CommitData {
commit: string;
}

const localCommitData: CommitData = await localCommitResponse.json(); // Explicitly define the type here
const originalCommitHash = localCommitData.commit; // Use the fetched commit hash

const currentLocalCommitHash = commit.commit; // Your current local commit hash
Expand Down

0 comments on commit aa35591

Please sign in to comment.