From 5f40dc394b14d821d9fb96bfa736f046b3fc5ab2 Mon Sep 17 00:00:00 2001 From: Johnny Niklasson Date: Tue, 5 Mar 2024 07:41:58 +0100 Subject: [PATCH] Fixing bug where moving from /teammedlemmer/{userId} to a new userId does not load new userId data (#76) --- src/pages/UserProfile/UserProfile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/UserProfile/UserProfile.tsx b/src/pages/UserProfile/UserProfile.tsx index 5fa015c8..37c1c3b7 100644 --- a/src/pages/UserProfile/UserProfile.tsx +++ b/src/pages/UserProfile/UserProfile.tsx @@ -57,7 +57,7 @@ const UserProfile = () => { .catch((error) => { setError(error as ApiError) }) - }, [setBreadcrumbUserProfileDisplayName]) + }, [principalName, setBreadcrumbUserProfileDisplayName]) const renderTeamNameColumn = (team: Team) => { return (