From fbcd10dec06d26d824aea7a0ac9e954ab0f1a915 Mon Sep 17 00:00:00 2001 From: Michael Ilie Date: Mon, 10 Aug 2020 10:48:27 -0400 Subject: [PATCH] fixed club data --- app/Clubs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Clubs.js b/app/Clubs.js index 1930a66..f415419 100644 --- a/app/Clubs.js +++ b/app/Clubs.js @@ -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(() => {