Fixed a minor bug
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ function profileRequestInner(connection, req, res, fields) {
|
|||||||
if (results.length === 1) {
|
if (results.length === 1) {
|
||||||
return profileCreateInner(connection, req, res, fields);
|
return profileCreateInner(connection, req, res, fields);
|
||||||
} else {
|
} else {
|
||||||
res.status(404).write('Profile not found');
|
res.status(400).write('Profile not found');
|
||||||
res.end();
|
res.end();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -121,9 +121,6 @@ class Profile extends React.Component {
|
|||||||
else if (xhr.status === 400) {
|
else if (xhr.status === 400) {
|
||||||
this.setWarning(xhr.responseText);
|
this.setWarning(xhr.responseText);
|
||||||
}
|
}
|
||||||
else if (xhr.status === 404) {
|
|
||||||
this.props.history.push('/404');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user