diff --git a/src/components/EventIcon.js b/src/components/EventIcon.js index 8aa32d2..2e3a726 100644 --- a/src/components/EventIcon.js +++ b/src/components/EventIcon.js @@ -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 + return } EventIcon.propTypes = {