From 7b2d900a52ca3cd59262a00a1ff6b366fe356ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa?= Date: Wed, 16 Oct 2024 10:48:45 +0200 Subject: [PATCH] import response --- client/src/containers/navigation/index.tsx | 5 ++--- client/src/services/projects/index.ts | 5 +++-- cms/config/sync/user-role.contributor.json | 6 ++++++ 3 files changed, 11 insertions(+), 5 deletions(-) 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 (