Skip to content
Snippets Groups Projects
Commit 0e377533 authored by Adam Procter's avatar Adam Procter
Browse files

bug fix

you can no longer try and join a microcosm without a name set, which would lead to no data being stored
parent 8a923fa1
No related branches found
No related tags found
No related merge requests found
......@@ -203,9 +203,13 @@ export default {
lower = spaces.split(' ').join('')
result = lower.split('-').join('')
this.$store.dispatch('createMicrocosm', result)
localStorage.setItem('mylastMicrocosm', result)
this.microcosm = true
if (this.clientid != '') {
this.$store.dispatch('createMicrocosm', result)
localStorage.setItem('mylastMicrocosm', result)
this.microcosm = true
} else {
// console.log('name not set')
}
},
setClient() {
var result
......@@ -233,7 +237,11 @@ export default {
},
letsGo() {
this.$emit('client-added')
if (this.clientid != '') {
this.$emit('client-added')
} else {
//console.log('name not set ')
}
},
focusInput() {
......
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