Skip to content

Commit

Permalink
fix:add a wait spinner until extra questions are fully loaded (#545)
Browse files Browse the repository at this point in the history
* fix:add a wait spinner until extra questions are fully loaded

* fix: get attendee->get orders->get questions flow
  • Loading branch information
romanetar authored Nov 25, 2024
1 parent cce21c4 commit 5be0ca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 @@ -364,6 +362,8 @@ export const getAllowedExtraQuestions =

const endpoint = `${window.API_BASE_URL}/api/v1/summits/${currentSummit.id}/attendees/${attendeeId}/allowed-extra-questions`;

dispatch(startLoading());

return getRequest(
createAction("DUMMY"),
createAction("DUMMY"),
Expand Down

0 comments on commit 5be0ca2

Please sign in to comment.