editToggle(){
    if (this.state.edit) {
      this.updateRoomType();
    } else {
      this.setState({ edit: !this.state.edit });
    }
  }
/**
   * This toggles between edit modes and save modes
   * if in the save mode it will try to update the roomType
   */
This toggles between edit modes and save modes
if in the save mode it will try to update the roomType
This toggles between edit modes and save modes if in the save mode it will try to update the roomType
editToggle(){
    if (this.state.edit) {
      this.updateRoomType();
    } else {
      this.setState({ edit: !this.state.edit });
    }
  }
editToggle ( ) { if ( this . state . edit ) { this . updateRoomType ( ) ; } else { this . setState ( { edit : ! this . state . edit } ) ; } }
This toggles between edit modes and save modes
 if in the save mode it will try to update the roomType
This toggles between edit modes and save modes if in the save mode it will try to update the roomType