diff --git a/app/[username]/RecentActivity.js b/app/[username]/RecentActivity.js index 1f61d29..d392b7b 100644 --- a/app/[username]/RecentActivity.js +++ b/app/[username]/RecentActivity.js @@ -12,7 +12,7 @@ const Activity = ({ event: { type, action, repo, size, issue, commits, branch, r case 'star': { return (
- + {action} repository {repo.name}
); diff --git a/utils/fetchActivity.js b/utils/fetchActivity.js index e017948..e719b82 100644 --- a/utils/fetchActivity.js +++ b/utils/fetchActivity.js @@ -8,6 +8,8 @@ const fetchActivity = async login => { }, }); + console.log(data); + // organize data const activity = data .map(({ type, payload, created_at: timestamp, repo, ...event }) => { @@ -101,7 +103,7 @@ const fetchActivity = async login => { type: 'star', timestamp, repo, - action, + action: 'starred', }; }