diff --git a/resources/js/components/Home/Version.js b/resources/js/components/Home/Version.js index 2665540b..26445e20 100644 --- a/resources/js/components/Home/Version.js +++ b/resources/js/components/Home/Version.js @@ -74,16 +74,13 @@ export default class Version extends Component { toast.info('Applying update'); Axios.get('/api/update/move') .then((resp) => { - Axios.get('/api/update/move') - .then((resp) => { - this.setState({ - updateProgress: 100, - }); - toast.success('Update successful. Refreshing your page...'); - setTimeout(function() { - location.reload(true); - }, 5000); - }) + this.setState({ + updateProgress: 100, + }); + toast.success('Update successful. Refreshing your page...'); + setTimeout(function() { + location.reload(true); + }, 5000); }) }) }) @@ -123,7 +120,9 @@ export default class Version extends Component {