Skip to content

Commit 9903d87

Browse files
authored
Merge pull request webdevcody#672 from idk23535/fixing-snippet-name
fixed the snippet name on the dashboard
2 parents b98ef59 + 803af9a commit 9903d87

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/app/src/app/dashboard/_components/recentRaces.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ export function RecentRacesTable({
4848
cell: ({ cell }) => {
4949
const snippet = cell.getValue() as Snippet;
5050

51-
if (snippet.name === "undefined") {
52-
return <span>-</span>
53-
} else {
54-
return <span>{snippet.name!}</span>
55-
}
51+
return <span>{snippet.name ?? "-"}</span>
5652
}
5753
},
5854
{

0 commit comments

Comments
 (0)