Bug: industry.href undefined in Home.jsx Industries section #49

Closed
opened 2026-05-17 17:20:40 -05:00 by null · 0 comments
Owner

Issue

In src/pages/Home.jsx at line 357, the code uses navigate(industry.href) but the industry objects in src/data/industries.js don't have an href property.

Location

  • File: src/pages/Home.jsx
  • Line: 357

Expected Behavior

Clicking "Learn more" on an industry card should navigate to /industries/${industry.id}

Actual Behavior

Runtime error: industry.href is undefined, causing the navigation to fail

Fix

Change:

onClick={() => navigate(industry.href)}

to:

onClick={() => navigate(`/industries/${industry.id}`)}
## Issue In `src/pages/Home.jsx` at line 357, the code uses `navigate(industry.href)` but the industry objects in `src/data/industries.js` don't have an `href` property. ## Location - File: `src/pages/Home.jsx` - Line: 357 ## Expected Behavior Clicking "Learn more" on an industry card should navigate to `/industries/${industry.id}` ## Actual Behavior Runtime error: `industry.href` is undefined, causing the navigation to fail ## Fix Change: ```jsx onClick={() => navigate(industry.href)} ``` to: ```jsx onClick={() => navigate(`/industries/${industry.id}`)} ```
null added the
bug
frontend
labels 2026-05-17 17:20:40 -05:00
null closed this issue 2026-05-17 17:54:02 -05:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: null/Queue-North-Website#49
No description provided.