Remove the is-host event for the data and put it into sessionStorage

This commit is contained in:
Oliver-Akins 2020-09-27 22:11:01 -06:00
parent e9416b5dce
commit 74a784f497
2 changed files with 2 additions and 5 deletions

View file

@ -41,9 +41,8 @@ export default {
HostInformation(data) {
if (data.success) {
sessionStorage.setItem(`game-code`, data.game_code);
this.$emit(`is-host`, true);
// this.$emit(`go-to`, `lobby`);
this.$store.state.state = `lobby`;
sessionStorage.setItem(`host`, true);
this.$emit(`go-to`, `lobby`);
} else {
this.error = data.error_message
};