Skip to content

Commit

Permalink
Resolve ts errors with merged code, and updated name of variables
Browse files Browse the repository at this point in the history
  • Loading branch information
TyrinH committed Jul 24, 2024
1 parent 3d8920b commit f815ae6
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 f815ae6

Please sign in to comment.