Skip to content

Commit

Permalink
htofix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Norris committed Jul 14, 2020
1 parent 1cd0fac commit 1c7fe0e
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 52 deletions.
139 changes: 91 additions & 48 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions app/javascript/packs/components/CatsGame.jsx
Expand Up @@ -96,7 +96,7 @@ class CatsGame extends React.Component {
};

forceDraftRefresh = () => {
fetch('/cats_games' + this.props.game_id + '/refresh_state').then(function (res) {
fetch('/cats_games/' + this.props.game_id + '/refresh_state').then(function (res) {
return res.json();
}).then((data) => {
this.setState({
Expand All @@ -119,7 +119,7 @@ class CatsGame extends React.Component {
}

startGame = () => {
fetch("/cats_games" + this.props.game_id +"/start_game", {method: 'post'})
fetch("/cats_games/" + this.props.game_id +"/start_game", {method: 'post'})
}

dismissAlert = () => {
Expand All @@ -129,11 +129,11 @@ class CatsGame extends React.Component {
}

simulateCatPhase = () => {
fetch("/cats_games" + this.props.game_id + "/simulate_cat_round", {method: 'post'})
fetch("/cats_games/" + this.props.game_id + "/simulate_cat_round", {method: 'post'})
}

simulateCardPlayingRound = () => {
fetch("/cats_games" + this.props.game_id + "/simulate_card_playing_round", {method: 'post'})
fetch("/cats_games/" + this.props.game_id + "/simulate_card_playing_round", {method: 'post'})
}

resetBid = () => {
Expand Down

0 comments on commit 1c7fe0e

Please sign in to comment.