We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d49984b commit 48ae7b2Copy full SHA for 48ae7b2
apps/web/src/components/InternInfo/InternInfo.tsx
@@ -9,8 +9,8 @@ import {
9
} from '@internship-app/types';
10
import { DataGrid, GridColDef } from '@mui/x-data-grid';
11
import moment from 'moment';
12
-import { steps } from '../../constants/interviewConstants';
13
+import { steps } from '../../constants/interviewConstants';
14
import styles from './index.module.css';
15
16
interface InternInfoProps {
@@ -148,7 +148,7 @@ export const InternInfo = ({ intern }: InternInfoProps) => {
148
149
if (categoryCompare !== 0) return categoryCompare;
150
151
- return a.position! - b.position!;
+ return (a.position ?? 0) - (b.position ?? 0);
152
})
153
.map((item: Answer) => {
154
if (!item.value) return null;
0 commit comments