Skip to content

Commit

Permalink
fix(Week.tsx): correct import path for scheduledata try
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandotfurrer committed Jul 18, 2024
1 parent 53d0681 commit cca47cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/(main)/league/[leagueId]/entry/[entryId]/week/Week.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ const Week = ({ entry, league, NFLTeams, week }: IWeekProps): JSX.Element => {
}

try {
const scheduleData = await import(`@/app/schedule/2024/week${week}.json`);
const scheduleData = await import(
`@/app/(main)/schedule/2024/week${week}.json`
);
setSchedule(scheduleData.events);
} catch (error) {
console.error('Could not load week data:', error);
Expand Down

0 comments on commit cca47cd

Please sign in to comment.