Skip to content

Commit

Permalink
replace string with dash
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Ryo committed May 31, 2024
1 parent 70b97ec commit 95c79e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/accueil/RightNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -179,7 +179,7 @@ export const RightNavigation = ({ activityUser, displayAsUser = false }: { activ
{isMediator && (
<Button
component="a"
href={`https://prof.parlemonde.org/les-professeurs-partenaires/${activityUser.pseudo}/profile`}
href={`https://prof.parlemonde.org/les-professeurs-partenaires/${formatPseudo}/profile`}
target="_blank"
rel="noopener noreferrer"
style={{ overflow: 'hidden', margin: '2rem 2rem 2.5rem 2rem', textAlign: 'center' }}
Expand Down

0 comments on commit 95c79e2

Please sign in to comment.