Skip to content

Commit a2627b4

Browse files
committed
Fixed a few obsolete profile references
1 parent 65d64e5 commit a2627b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web-ui/src/context/reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export const reducer = (state, action) => {
172172
break;
173173
case UPDATE_MEMBER_PROFILES:
174174
action.payload.forEach(convertMemberDates);
175-
const currentProfileId = state?.userProfile?.memberProfile?.id;
175+
const currentProfileId = state?.userProfile?.id;
176176
const currentProfile = action.payload.find((current) => {
177177
if(currentProfileId && current.id === currentProfileId) {
178178
return current;

web-ui/src/pages/MemberProfilePage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const MemberProfilePage = () => {
8282
const [selectedMemberSkills, setSelectedMemberSkills] = useState([]);
8383
const [teams, setTeams] = useState([]);
8484
const [guilds, setGuilds] = useState([]);
85-
const isCurrentUser = userProfile?.memberProfile?.id === memberId;
85+
const isCurrentUser = userProfile?.id === memberId;
8686

8787
useEffect(() => {
8888
async function getTeamsAndGuilds() {

0 commit comments

Comments
 (0)