0
0
Fork 0

Correct the switch case and add information to the warning.

This commit is contained in:
Oliver-Akins 2021-01-01 20:18:12 -07:00
parent db464aa808
commit d241f341be

View file

@ -52,7 +52,7 @@ export default {
return;
};
switch (data.mode) {
switch (data.action) {
case "modify":
if (this.$store.state.name === data.name) {
this.$store.commit(`player`, {
@ -67,7 +67,7 @@ export default {
this.$store.commit(`playerList`, data.players);
break;
default:
console.warn(`Unknown response type from "PlayerUpdate"`);
console.warn(`Unknown response type from "PlayerUpdate": ${data.mode}`);
};
},
},