@@ -125,7 +125,11 @@ class TextFields extends React.Component {
let attendees
await fetch('http://christmas.logicp.ca/api/list', {
method: 'get',
- }).then(data => data.json().then(finalData => attendees = finalData.attendees))
+ }).then(data => {
+ data.json().then(finalData => {
+ attendees = finalData.attendees
+ })
return attendees
}