From 95c79e20c9ae13d436e63bd184fe77bbb0556152 Mon Sep 17 00:00:00 2001 From: Neo Ryo Date: Fri, 31 May 2024 10:09:36 +0200 Subject: [PATCH] replace string with dash --- src/components/accueil/RightNavigation.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/accueil/RightNavigation.tsx b/src/components/accueil/RightNavigation.tsx index e4b945f77..af9364389 100644 --- a/src/components/accueil/RightNavigation.tsx +++ b/src/components/accueil/RightNavigation.tsx @@ -38,7 +38,7 @@ export const RightNavigation = ({ activityUser, displayAsUser = false }: { activ const onclick = React.useCallback(() => { router.push(`/activite/${activityUser.mascotteId}`); }, [activityUser.mascotteId, router]); - + const formatPseudo = activityUser.pseudo.replace(' ', '-'); // ---- Get user weather and time ---- React.useEffect(() => { if (weather) { @@ -179,7 +179,7 @@ export const RightNavigation = ({ activityUser, displayAsUser = false }: { activ {isMediator && (