Skip to content

Commit

Permalink
fix EventIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Aug 28, 2024
1 parent b49c83c commit 49298df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/EventIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ export default function EventIcon ({
event
}) {
/** @type {import("@primer/octicons-react").Icon} */
let icon
let Icon
if (action && iconMap[`${event}.${action}`]) {
icon = iconMap[`${event}.${action}`]
Icon = iconMap[`${event}.${action}`]
} else if (iconMap[event]) {
icon = iconMap[event]
Icon = iconMap[event]
} else {
icon = PackageIcon
Icon = PackageIcon
}

return <icon />
return <Icon />
}

EventIcon.propTypes = {
Expand Down

0 comments on commit 49298df

Please sign in to comment.