Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
matiastucci committed Feb 20, 2019
1 parent 7c0e836 commit b64b748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/InputTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ export default {
? await this.beforeAdding(this.newTag)
: this.newTag;
const valid = await this.validateIfNeeded(tag);
const isValid = await this.validateIfNeeded(tag);
if (
tag &&
(this.allowDuplicates || this.innerTags.indexOf(tag) === -1) &&
valid
isValid &&
(this.allowDuplicates || this.innerTags.indexOf(tag) === -1)
) {
this.innerTags.push(tag);
this.newTag = "";
Expand Down

0 comments on commit b64b748

Please sign in to comment.