Skip to content
Snippets Groups Projects
Commit 84723a0f authored by Zara Mudassar's avatar Zara Mudassar
Browse files

Removed console.log

parent 4f56f349
No related branches found
No related tags found
1 merge request!69Join open communities
Pipeline #178781 failed
...@@ -208,10 +208,7 @@ export function JoinOpenCommunity(communityId) { ...@@ -208,10 +208,7 @@ export function JoinOpenCommunity(communityId) {
} }
export async function GetIfUserAlreadyInCommunity(communityID) { export async function GetIfUserAlreadyInCommunity(communityID) {
console.log("token: " + tokenHeader().Authorization);
if(tokenHeader().Authorization == "Bearer " + null){ if(tokenHeader().Authorization == "Bearer " + null){
console.log("ikke logget på!");
return false; return false;
} }
...@@ -220,11 +217,9 @@ export async function GetIfUserAlreadyInCommunity(communityID) { ...@@ -220,11 +217,9 @@ export async function GetIfUserAlreadyInCommunity(communityID) {
headers: tokenHeader(), headers: tokenHeader(),
}) })
.then((response) => { .then((response) => {
console.log("res: " + response.data);
return response.data; return response.data;
}) })
.catch((error) => { .catch((error) => {
console.error("err: " + error);
return error; return error;
}); });
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment