Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve ts errors with merged code, and updated name of variables #765

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading