Prevent stopping execution.

This commit is contained in:
2020-06-14 13:36:56 +02:00
committed by KevinMidboe
parent a84441078c
commit efb5dfcd3e

View File

@@ -82,12 +82,11 @@ export default {
}, },
mounted() { mounted() {
let username = window.localStorage.getItem("username"); let username = window.localStorage.getItem("username");
if (!username) { if (username) {
return; this.username = username;
this.usernameSet = true;
this.$emit("username", username);
} }
this.username = username;
this.usernameSet = true;
this.$emit("username", username);
}, },
methods: { methods: {
pad: function(num) { pad: function(num) {