Skip to content

Commit

Permalink
Merge pull request #120 from awest25/lint
Browse files Browse the repository at this point in the history
lint
  • Loading branch information
Fredenck authored Apr 15, 2024
2 parents 40a423b + d32921b commit eaac27a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions app/(interactive)/matches/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ const AllMatchList = () => {
} else if (
(category === 'Untagged (M)' && !match.published && match.clientTeam.endsWith('(M)')) ||
(category === 'Untagged (W)' && !match.published && match.clientTeam.endsWith('(W)'))) {
return (
<li key={match.id}>
<a href={'https://www.youtube.com/watch?v=' + match.videoId} target="_blank"> {match.name} </a>
</li>
);
}
return (
<li key={match.id}>
<a href={'https://www.youtube.com/watch?v=' + match.videoId} target="_blank"> {match.name} </a>
</li>
);
}

else {
return null; // If match does not belong to the category, don't render it
Expand Down
16 changes: 8 additions & 8 deletions app/components/SearchDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ const SearchDropdown = () => {
const fetchMatches = async () => {
const querySnapshot = await getDocs(collection(db, 'matches'));
const matches = querySnapshot.docs
.filter((doc) => doc.data().published)
.map((doc) => {
const data = doc.data();
return {
value: data.videoId, // Use 'value' to adhere to react-select convention
label: data.name
};
});
.filter((doc) => doc.data().published)
.map((doc) => {
const data = doc.data();
return {
value: data.videoId, // Use 'value' to adhere to react-select convention
label: data.name
};
});
setDropdownData(matches);

// Find the selected match based on the URL and set it as selected
Expand Down

0 comments on commit eaac27a

Please sign in to comment.