diff --git a/client/src/containers/navigation/index.tsx b/client/src/containers/navigation/index.tsx index 4b075c15..eaed826f 100644 --- a/client/src/containers/navigation/index.tsx +++ b/client/src/containers/navigation/index.tsx @@ -23,7 +23,7 @@ const Navigation = (): JSX.Element => { const sp = useSyncSearchParams(); const { data: user } = useGetUsersMe(); - const userNameWithoutSpaces = user?.username?.replace(" ", ""); + const userNameWithoutSpaces = !user?.username?.includes(" "); return (