set default error message when user is not available

This commit is contained in:
Gamebrary 2021-04-24 00:34:26 -07:00
parent 89410bb687
commit 043d23d919

View file

@ -125,6 +125,8 @@ export default {
this.available = await this.$store.dispatch('CHECK_PROFILE_USERNAME_AVAILABILITY', userName);
this.errorMessage = this.available ? null : 'User name not available';
this.loading = false;
},
},