fixed club data

This commit is contained in:
Michael Ilie 2020-08-10 10:48:27 -04:00
parent 4fd9990e38
commit fbcd10dec0

View File

@ -55,8 +55,8 @@ class Clubs extends React.Component {
.then((json) => {
//onsole.log("done bitch?")
//console.log(json);
this.setState({data: JSON.parse(json)});
this.setState({dataSearch:JSON.parse(json)});
this.setState({data: JSON.parse(json).clubs});
this.setState({dataSearch:JSON.parse(json).clubs });
})
.catch((error) => console.error(error))
.finally(() => {