From 00942640a6a51ac8e84880b215e0d449c8752dde Mon Sep 17 00:00:00 2001 From: devxprite Date: Sat, 27 Apr 2024 21:09:07 +0530 Subject: [PATCH] fix: Spelling Mistake --- app/[username]/RecentActivity.js | 2 +- utils/fetchActivity.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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', }; }