From 50fc6bd37966bc1ed5535c925e0948611a424ac2 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Mon, 13 Nov 2023 13:09:33 +0100 Subject: [PATCH] Updated the RequestUtil.js --- src/common/util/RequestUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/util/RequestUtil.js b/src/common/util/RequestUtil.js index e6db664..945c520 100644 --- a/src/common/util/RequestUtil.js +++ b/src/common/util/RequestUtil.js @@ -1,6 +1,6 @@ // Get the default headers of the request const getHeaders = () => { - return localStorage.getItem("token") === undefined ? {Authorization: "Basic " + localStorage.getItem("token")} : {}; + return localStorage.getItem("token") ? {Authorization: "Basic " + localStorage.getItem("token")} : {}; } // Run a plain request with all default values