diff --git a/src/client/src/pages/term/accept.jsx b/src/client/src/pages/term/accept.jsx index 60c2d9bae..523c18730 100644 --- a/src/client/src/pages/term/accept.jsx +++ b/src/client/src/pages/term/accept.jsx @@ -25,15 +25,17 @@ class AcceptTerms extends React.Component { componentDidMount() { getTerms().then(r => { - this.setState({ - isFetching: false, - id: r.data.data.id, - en: r.data.data.en, - fr: r.data.data.fr, - de: r.data.data.de, - it: r.data.data.it, - ro: r.data.data.ro, - }); + if (r.data.data) { + this.setState({ + isFetching: false, + id: r.data.data.id, + en: r.data.data.en, + fr: r.data.data.fr, + de: r.data.data.de, + it: r.data.data.it, + ro: r.data.data.ro, + }); + } }); }