diff --git a/src/components/NewGameForm.js b/src/components/NewGameForm.js index 9d539595682edda8da16464e1c6c8b1e10336e68..3dcf6a585e2bb08e3ca31ba1df46ca28a8f25387 100644 --- a/src/components/NewGameForm.js +++ b/src/components/NewGameForm.js @@ -91,7 +91,9 @@ export class NewGameForm extends React.Component{ }, body: JSON.stringify(gameObject) }).then(res => res.json()) - .then(result => console.log(result)) + .then(result => { + this.handleView(); + }) .catch(error => console.log('Error: ', error)); };