client/src/pages/Group.js
//loads the current group and sets it to group
loads the current group and sets it to group
loads the current group and sets it to group
function loadGroup(groupName) {
    console.log(groupName);
    API.getGroup(groupName)
      .then((res) => {
        console.log("load group response");
        console.log(res);
        setGroupState(res.data);
        setCurrentGroupState(res.data);
      })
      .catch((err) => console.log(err));
  }
function loadGroup ( groupName ) { console . log ( groupName ) ; API . getGroup ( groupName ) . then ( ( res ) => { console . log ( "load group response" ) ; console . log ( res ) ; setGroupState ( res . data ) ; setCurrentGroupState ( res . data ) ; } ) . catch ( ( err ) => console . log ( err ) ) ; }
loads the current group and sets it to group
loads the current group and sets it to group
//props.joinGroupRequest(res.data._id);