Skip to content

Commit

Permalink
Check if repo is valid by checking if a createdAt date is available (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
richaagarwal committed Aug 16, 2023
1 parent 29ca940 commit d49be77
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ import { TotalCommits } from './TotalCommits';

export function ActivityMaintenanceSection() {
const [t] = useTranslation(['activity']);
const { plugin } = usePluginState();
const { plugin, repo } = usePluginState();

const hasRepo = !!plugin?.code_repository?.includes('github');
const hasRepo = !!(
plugin?.code_repository?.includes('github') && repo.createdAt
);

return (
<ActivitySection
Expand Down

0 comments on commit d49be77

Please sign in to comment.