@topconsultnpm/sdkui-react-beta 6.12.56 → 6.12.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ const TMUserAvatar = ({ name, returnType = 'jsx' }) => {
|
|
27
27
|
};
|
28
28
|
// Helper function to extract initials from name
|
29
29
|
const extractInitialsFromName = (name) => {
|
30
|
-
if (name.length >=
|
30
|
+
if (name.length >= 2) {
|
31
31
|
const lettersOnly = name.replace(/[^a-zA-Z]/g, '');
|
32
32
|
return lettersOnly.substring(0, 3).toUpperCase();
|
33
33
|
}
|