Skip to content

Commit

Permalink
Merge pull request #765 from TyrinH/main
Browse files Browse the repository at this point in the history
Resolve ts errors with merged code, and updated name of variables
  • Loading branch information
TyrinH authored Jul 24, 2024
2 parents 2666d33 + f815ae6 commit a2eea87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/app/src/app/dashboard/_components/recentRaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ export function RecentRacesTable({
cell: ({ cell }) => {
const name = cell.getValue() as string;

return <span>{snippet?.name ?? "-"}</span>;
return <span>{name ?? "-"}</span>;
},
},
{
accessorKey: "snippet.language",
header: "Language",
cell: ({ cell }) => {
const snippet = cell.getValue() as string;
const snippetLanguage = cell.getValue() as string;
const language = snippetLanguages.find((language) => {
if (language.value === snippet) {
if (language.value === snippetLanguage) {
return language.label;
}
});

return <span>{language ?? "-"}</span>;
return <span>{language?.label ?? "-"}</span>;
},
},
{
Expand Down

0 comments on commit a2eea87

Please sign in to comment.