Skip to content

Commit

Permalink
NwrIcon: Fix unknown type (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvaclavik authored Jan 27, 2025
1 parent dd5cedf commit b1372ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/FeaturePanel/NwrIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const typeMap: TypeMap = {

export const NwrIcon = ({ osmType, color, fontSize }: NwrIconProps) => {
const type = typeMap[osmType];
if (!type) return null;

const IconComponent = type.icon;
const { name, scale } = type;

Expand Down

0 comments on commit b1372ec

Please sign in to comment.