Skip to content

Commit

Permalink
Fix syntax error for promise chain
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasnaphas committed Mar 31, 2023
1 parent a946bea commit 2dc92bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/SedersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ function SedersPage({
`./participant-link-data?email=${encodeURIComponent(user.email)}`,
Configs.apiUrl()
);
fetch(participantLinkDataUrl, { credentials: "include" });
then((r) => {
return r.json();
})
fetch(participantLinkDataUrl, { credentials: "include" })
.then((r) => {
return r.json();
})
.then((ld) => {
if (Array.isArray(ld)) {
setParticipantLinkData(ld);
Expand Down

0 comments on commit 2dc92bb

Please sign in to comment.