Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Severin Beauvais committed Sep 27, 2024
1 parent 9aabc1f commit ab0902b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/ContinuationIn/ContinuationAuthorization.vue
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export default class ExtraproRegistration extends Mixins(DocumentMixin) {
// verify that file is valid
if (!this.fileValidity) {
// put file uploader into manual error mode by setting custom error message
this.customErrorMessage = 'Invalid file.'
if (!this.customErrorMessage) this.customErrorMessage = 'Invalid file.'
return // don't add to array
}
Expand Down Expand Up @@ -383,6 +383,8 @@ export default class ExtraproRegistration extends Mixins(DocumentMixin) {
this.deleteDocument(this.authorization.files[index].fileKey).catch(() => null)
// remove file from array
this.authorization.files.splice(index, 1)
// clear previous error, if any
this.customErrorMessage = null
}
}
Expand Down

0 comments on commit ab0902b

Please sign in to comment.