diff --git a/src/App/UserProfile/sagas.ts b/src/App/UserProfile/sagas.ts index cada552..945fe75 100644 --- a/src/App/UserProfile/sagas.ts +++ b/src/App/UserProfile/sagas.ts @@ -58,14 +58,14 @@ function* fetchUserProfile(action: PayloadAction) { api.participants.read, )) as MakeResponse; - if (assignableParticipantsResponse.status == 200) { + if (assignableParticipantsResponse.status === 200) { // throw new Error(JSON.stringify(assignableParticipantsResponse)); userProfile.assignableParticipants = assignableParticipantsResponse.data.participants; - + const assignedParticipantsResponse = (yield call(api.userParticipants.read, { id: action.payload, })) as MakeResponse; - + if (assignedParticipantsResponse.status !== 200) { throw new Error(JSON.stringify(assignedParticipantsResponse)); }