Skip to content

Commit a4738f0

Browse files
committed
fixing carousel items not showing
1 parent 9cd3898 commit a4738f0

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

app/components/Dashboard.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ const formatMatches = (matches) => {
2828

2929
// Memoized CarouselItem with fixed dimensions but original logo container
3030
const CarouselItem = React.memo(({ match, isSelected, onClick, logo }) => {
31-
const cleanedOpponentTeam = cleanTeamName(match.teams.opponentTeam)
3231
const matchKey = match.matchDetails.duel
33-
? `${match.matchDate}#${cleanedOpponentTeam}`
32+
? `${match.matchDate}#${match.teams.opponentTeam}`
3433
: `_#${match.matchDetails.event}`
3534

3635
// Use placeholder for image if logo is null/undefined? Currently no placeholder.
@@ -342,7 +341,7 @@ const Dashboard = () => {
342341
logo={logos[match.teams.opponentTeam]}
343342
isSelected={selectedMatchSets.includes(
344343
match.matchDetails.duel
345-
? `${match.matchDate}#${cleanTeamName(match.teams.opponentTeam)}`
344+
? `${match.matchDate}#${match.teams.opponentTeam}`
346345
: `_#${match.matchDetails.event}`
347346
)}
348347
onClick={handleCarouselClick}

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"eslint-plugin-node": "^11.1.0",
3939
"eslint-plugin-prettier": "^5.2.1",
4040
"eslint-plugin-promise": "^6.6.0",
41-
"husky": "^9.1.5",
41+
"husky": "^9.1.7",
4242
"lint-staged": "^15.2.9",
4343
"prettier": "^3.3.3"
4444
},

0 commit comments

Comments
 (0)