diff --git a/frontend/src/pages/Profile.vue b/frontend/src/pages/Profile.vue
index 57a7ab4..422d2d9 100644
--- a/frontend/src/pages/Profile.vue
+++ b/frontend/src/pages/Profile.vue
@@ -35,7 +35,8 @@
-
+
@@ -319,16 +320,16 @@
}
this.$axios.get('/api/getTeamOfUser', {params: {token}})
.then(response => {
- if (response.data.trim() === '') {
+ if (response.data.name === '') {
this.boolAlreadyInTeam = false;
this.teamName = "Aktuell in keinem Team";
this.currentTeamStatus = "";
this.teamRanking = "-";
} else {
this.boolAlreadyInTeam = true;
- this.teamName = response.data;
+ this.teamName = response.data.name;
this.currentTeamStatus = response.data.teamStatus;
- this.teamRanking = response.data.teamRanking;
+ //this.teamRanking = response.data.teamRanking;
this.fetchTeamMembers();
}
this.data[2].userData = this.teamName;
@@ -366,8 +367,8 @@
return;
}
params.name = this.newTeamName;
- this.$axios.post('/api/createTeam', {params})
- .then(response => {
+ this.$axios.post('/api/createTeam', null, {params})
+ .then((response) => {
console.log("createTeam: " + response);
this.$store.commit('dialog/NEW_MESSAGE_DIALOG', {
message: "Das Team " + this.newTeamName + " wurde erfolgreich erstellt!",