Skip to content

Commit

Permalink
fix:add a wait spinner until extra questions are fully loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
romanetar committed Nov 25, 2024
1 parent cce21c4 commit 8223750
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/actions/attendee-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,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 Expand Up @@ -392,6 +394,8 @@ export const getAllowedExtraQuestions =
}`
}));

dispatch(startLoading());

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

0 comments on commit 8223750

Please sign in to comment.