Fix condition for displaying "internal server error"

This commit is contained in:
Martchus 2024-03-17 21:53:36 +01:00
parent f7272c0836
commit 62f25c7172
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export function queryRoute(method, path, callback, type)
default:
try {
// avoid showing HTML code from gateway
ajaxRequest.responseTextDisplay = ajaxRequest.status >= 500 || ajaxRequest.status < 600 ? 'internal server error' : ajaxRequest.responseText;
ajaxRequest.responseTextDisplay = ajaxRequest.status >= 500 && ajaxRequest.status < 600 ? 'internal server error' : ajaxRequest.responseText;
return callback(this, status === 200);
} catch (e) {
window.alert('Unable to process server response: ' + e);