diff --git a/js/api.js b/js/api.js index a8ae841..d3b9b10 100644 --- a/js/api.js +++ b/js/api.js @@ -60,7 +60,7 @@ const defaultstate_tournamentinfo = { isPublic : '', stages: [], teams : [] -} +}; export function postRequest(state, url, data) { return axios.post(api_url + url, data, { @@ -262,7 +262,7 @@ const reducer_tournamentinfo = (state = defaultstate_tournamentinfo, action) => }); storeOptionalToken(resp); action.parameters.successCallback(); - }).catch((error) => { + }).catch(() => { action.parameters.errorCallback(); }); return Object.assign({}, state, {}); @@ -304,7 +304,7 @@ const reducer_tournamentinfo = (state = defaultstate_tournamentinfo, action) => return Object.assign({}, state, {}); default: return state; } -} +}; const reducers = { userinfo: reducer_userinfo, diff --git a/pages/_error.js b/pages/_error.js index 0383518..c0babdc 100644 --- a/pages/_error.js +++ b/pages/_error.js @@ -1,4 +1,5 @@ import { ErrorPageComponent } from '../js/components/ErrorComponents.js'; +import React from 'react'; import { verifyCredentials diff --git a/pages/tournament-edit.js b/pages/tournament-edit.js index f778dea..68d3add 100644 --- a/pages/tournament-edit.js +++ b/pages/tournament-edit.js @@ -13,7 +13,6 @@ import { Button, Card, CardBody, - CardTitle, Table } from 'reactstrap'; @@ -87,8 +86,6 @@ export default connect( class EditTournamentContent extends React.Component { render() { - const { code } = this.props; - return (