diff --git a/src/libs/Request.ts b/src/libs/Request.ts index ac4913e9833a..459deaf89e1e 100644 --- a/src/libs/Request.ts +++ b/src/libs/Request.ts @@ -13,7 +13,7 @@ function makeXHR(request: Request): Promise { // If we're using the Supportal token and this is not a Supportal request // let's just return a promise that will resolve itself. if (NetworkStore.getSupportAuthToken() && !NetworkStore.isSupportRequest(request.command)) { - return new Promise((resolve) => resolve(undefined)); + return new Promise((resolve) => resolve()); } return HttpUtils.xhr(request.command, finalParameters, request.type, request.shouldUseSecure); });