diff --git a/src/features/Auth/pages/LoginPage/LoginPage.tsx b/src/features/Auth/pages/LoginPage/LoginPage.tsx index 6fb0d75..d874171 100644 --- a/src/features/Auth/pages/LoginPage/LoginPage.tsx +++ b/src/features/Auth/pages/LoginPage/LoginPage.tsx @@ -9,7 +9,7 @@ import { IoRocketOutline } from "react-icons/io5"; import Button from "src/Components/Button/Button"; import { FiCopy } from "react-icons/fi"; import useCopyToClipboard from "src/utils/hooks/useCopyToClipboard"; -import { getPropertyFromUnknown, } from "src/utils/helperFunctions"; +import { getPropertyFromUnknown, trimText, } from "src/utils/helperFunctions"; @@ -147,9 +147,9 @@ export default function LoginPage() { else if (isLoggedIn) content =

- Hello: @{meQuery.data?.me?.name.slice(0, 10)}... + Hello: @{trimText(meQuery.data?.me?.name, 10)}

- +
else diff --git a/src/features/Profiles/Components/Avatar/Avatar.tsx b/src/features/Profiles/Components/Avatar/Avatar.tsx index 01090b6..1e0ed60 100644 --- a/src/features/Profiles/Components/Avatar/Avatar.tsx +++ b/src/features/Profiles/Components/Avatar/Avatar.tsx @@ -7,7 +7,7 @@ interface Props { export default function Avatar({ src, alt, width = 40 }: Props) { return ( - {alt