Skip to content

Commit

Permalink
Fix liquidator status message
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjablack committed Apr 26, 2020
1 parent c854b0c commit 00af546
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/views/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ class App extends React.Component {
const response = JSON.parse(xmlhttp.responseText)
console.log('response', response)
if (response.message === 'success') {
if (response.message === 'Success') {
document.getElementById('liquidator-status').innerHTML = "Updating... (refresh in 2 min)"
} else {
alert('An error occured')
}
} else if (xmlhttp.status !== 200) {
alert('An error occured')
Expand Down

0 comments on commit 00af546

Please # to comment.