Fixed a minor bug

This commit is contained in:
2019-05-17 16:41:18 +10:00
parent b2b0f628bd
commit 003bd0ff54
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ function profileRequestInner(connection, req, res, fields) {
if (results.length === 1) {
return profileCreateInner(connection, req, res, fields);
} else {
res.status(404).write('Profile not found');
res.status(400).write('Profile not found');
res.end();
}
});
-3
View File
@@ -121,9 +121,6 @@ class Profile extends React.Component {
else if (xhr.status === 400) {
this.setWarning(xhr.responseText);
}
else if (xhr.status === 404) {
this.props.history.push('/404');
}
}
}