Skip to content

Commit

Permalink
fix: get attendee->get orders->get questions flow
Browse files Browse the repository at this point in the history
  • Loading branch information
romanetar committed Nov 25, 2024
1 parent 8223750 commit d0d82f0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/actions/attendee-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,7 @@ export const getAttendee = (attendeeId) => async (dispatch, getState) => {
createAction(RECEIVE_ATTENDEE),
`${window.API_BASE_URL}/api/v1/summits/${currentSummit.id}/attendees/${attendeeId}`,
authErrorHandler
)(params)(dispatch).then(({ response }) => {
getAttendeeOrders(response)(dispatch, getState);
});
)(params)(dispatch).then(({ response }) => getAttendeeOrders(response)(dispatch, getState));
};

export const getAttendeeOrders = (attendee) => async (dispatch) => {
Expand Down Expand Up @@ -394,8 +392,6 @@ export const getAllowedExtraQuestions =
}`
}));

dispatch(startLoading());

// get remaining ones
return Promise.all(
params.map((p) =>
Expand Down

0 comments on commit d0d82f0

Please sign in to comment.