@@ -13,23 +13,13 @@ import {
1313 adminUpdateQuoteMutation ,
1414} from "@/generated/client/@tanstack/react-query.gen"
1515import { activateKeyset } from "@/generated/client/sdk.gen"
16- import { cn } from "@/lib/utils"
16+ import { cn , getInitials } from "@/lib/utils"
1717import { formatDate , humanReadableDuration } from "@/utils/dates"
1818
1919import { formatNumber , truncateString } from "@/utils/strings"
2020import { useMutation , useQueryClient , useSuspenseQuery } from "@tanstack/react-query"
2121import { getDeterministicColor } from "@/utils/dev"
2222
23- // Utility functions for deterministic avatars
24- function getInitials ( name ?: string ) : string {
25- if ( ! name ) return "?"
26- const words = name . trim ( ) . split ( / \s + / )
27- if ( words . length === 1 ) {
28- return words [ 0 ] . substring ( 0 , 2 ) . toUpperCase ( )
29- }
30- return ( words [ 0 ] [ 0 ] + words [ words . length - 1 ] [ 0 ] ) . toUpperCase ( )
31- }
32-
3323import { LoaderIcon } from "lucide-react"
3424import { Suspense , useMemo , useState } from "react"
3525import { Link , useParams } from "react-router"
@@ -464,7 +454,7 @@ export function ParticipantsOverviewCard({
464454}
465455
466456function AnonPublicAvatar ( { value, tooltip } : { value ?: AnonPublicData ; tooltip ?: React . ReactNode } ) {
467- const initials = "?" // getInitials(value?.node_id?.slice(-8)) // Use last 8 chars of node_id
457+ const initials = "?"
468458 const backgroundColor = getDeterministicColor ( value ?. node_id )
469459
470460 const avatar = (
0 commit comments