Skip to content
Snippets Groups Projects

Development

Merged Ghost User requested to merge development into testing
1 file
+ 8
4
Compare changes
  • Side-by-side
  • Inline
@@ -258,12 +258,16 @@ export class EditGameForm extends React.Component {
},
body: JSON.stringify(gameObject)
})
.then(res => res.json())
.then(res => {
if (!res.ok) {
throw Error(res.statusMessage);
} else {
return res.json();
}
})
.then(result => {
alert(result.message);
if (result.code === 200) {
this.handleView();
}
this.handleView();
})
.catch(error => console.log("Error: ", error));
};
Loading