Skip to content

fix: remove incomplete duplicate eventImgs declaration in dashboard/page.tsx#382

Open
Tinna23 wants to merge 1 commit into
Lead-Studios:mainfrom
Tinna23:fix/dashboard-duplicate-eventimgs
Open

fix: remove incomplete duplicate eventImgs declaration in dashboard/page.tsx#382
Tinna23 wants to merge 1 commit into
Lead-Studios:mainfrom
Tinna23:fix/dashboard-duplicate-eventimgs

Conversation

@Tinna23

@Tinna23 Tinna23 commented Jun 24, 2026

Copy link
Copy Markdown

Summary

Fixes a three-way merge artifact in src/app/(protected)/dashboard/page.tsx that produced two back-to-back variable declarations for the same data:

const eventImgs = data?.events?.slice(0, 4).map((e) => ({  // ← incomplete, no body
const eventImages = data?.events?.slice(0, 4).map((e) => ({  // ← complete but wrong name
  src: e.coverImage ?? null,
  alt: e.name,
})) ?? []

Changes

  • Deleted the syntactically incomplete const eventImgs = ... line
  • Renamed eventImageseventImgs to match the eventImgs.map() reference in JSX below

Testing

  • npm run build — zero TypeScript errors introduced by this file (pre-existing unrelated errors exist on main)
  • Only one const eventImgs declaration remains; JSX reference resolves correctly

Closes #360

…age.tsx

Merge artifact left two consecutive variable declarations:
  const eventImgs = data?.events...  ← syntactically incomplete (no body)
  const eventImages = data?.events...  ← complete but unused name

Removed the incomplete line and renamed eventImages → eventImgs to
match the JSX references below.

Closes Lead-Studios#360
@drips-wave

drips-wave Bot commented Jun 24, 2026

Copy link
Copy Markdown

@Tinna23 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FE-xxx: fix: dashboard/page.tsx duplicate variable — eventImgs and eventImages declared on consecutive lines

1 participant