Skip to content

Commit

Permalink
Remove legacy product requirement (#697) (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
tchapi authored Jul 20, 2020
1 parent 121b016 commit 8946915
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/js/mixins/inputFrame.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ export default {
})) + ' language' + (this.errorLocales.length > 1 ? 's' : '') + ' missing details.'
},
errorMessage () {
const message = this.error ? this.$store.state.form.errors[this.errorKey][0] : ''
return message.endsWith('is required.') && !this.errorKey.startsWith('block') ? '' : message
return this.error ? this.$store.state.form.errors[this.errorKey][0] : ''
},
error () {
return this.$store.state.form ? Object.keys(this.$store.state.form.errors).includes(this.errorKey) : false
Expand Down

0 comments on commit 8946915

Please sign in to comment.