Skip to content

Commit 9acc853

Browse files
authored
fix(): avoid undefined name value (#564)
Signed-off-by: sBouzols <[email protected]>
1 parent 98ffb30 commit 9acc853

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/utils/renderers/user-cell-renderer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import { Avatar, Box, Theme, Tooltip } from '@mui/material';
88

99
function getAbbreviationFromUserName(name: string) {
10-
if (name === null || name.trim() === '') {
10+
// notice : == null means null or undefined
11+
if (name == null || name.trim() === '') {
1112
return '';
1213
}
1314
const splittedName = name.split(' ');

0 commit comments

Comments
 (0)