@@ -138,10 +138,10 @@ export default {
...mapMutations([
]),
onClickBuild(e) {
- this.$router.push({
- name: 'BuildTown'
- })
if (this.canBuild) {
+ this.$router.push({
+ name: 'BuildTown'
+ })
} else {
utils.animateCSS(e.currentTarget, 'headShake')
}