Ensure non multi-user flow stays
This commit is contained in:
@@ -62,15 +62,7 @@ export const UIOptions = {
|
||||
},
|
||||
};
|
||||
|
||||
export const getInitialsFromName = (name: string): string => {
|
||||
const trimmed = name.trim();
|
||||
if (!trimmed) return 'U';
|
||||
const parts = trimmed.split(/\s+/).filter(Boolean);
|
||||
if (parts.length >= 2) {
|
||||
return `${parts[0][0]}${parts[parts.length - 1][0]}`.toUpperCase();
|
||||
}
|
||||
return trimmed.slice(0, 2).toUpperCase();
|
||||
};
|
||||
export { getInitialsFromName } from "../../utils/user";
|
||||
|
||||
export const getColorFromString = (str: string): string => {
|
||||
const COLORS = [
|
||||
|
||||
Reference in New Issue
Block a user