Skip to content

Commit f9e82a8

Browse files
authored
Merge pull request #2 from devXprite/i-1
fix: `Spelling Mistake` in `Recent Activity`
2 parents fe879fe + 0094264 commit f9e82a8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/[username]/RecentActivity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Activity = ({ event: { type, action, repo, size, issue, commits, branch, r
1212
case 'star': {
1313
return (
1414
<div>
15-
<FaRegStar className="mr-2 inline-block text-white" />
15+
<FaRegStar className="mr-2 inline-block text-white uppercase" />
1616
{action} repository <a href={repo.url}>{repo.name}</a>
1717
</div>
1818
);

utils/fetchActivity.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const fetchActivity = async login => {
88
},
99
});
1010

11+
console.log(data);
12+
1113
// organize data
1214
const activity = data
1315
.map(({ type, payload, created_at: timestamp, repo, ...event }) => {
@@ -101,7 +103,7 @@ const fetchActivity = async login => {
101103
type: 'star',
102104
timestamp,
103105
repo,
104-
action,
106+
action: 'starred',
105107
};
106108
}
107109

0 commit comments

Comments
 (0)