Skip to content

Commit

Permalink
don't show success if no credentials found
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Node-Karlsruhe committed Nov 28, 2022
1 parent 0ef6525 commit 654db50
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/views/Verify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ export default {
},
async verify() {
if (this.credentials.length == 0) {
this.toast.warning('No credentials provided for verification!');
return
}
try {
this.progress = 1
Expand All @@ -219,6 +224,8 @@ export default {
if (this.numberVerified == this.credentials.length) this.toast.success('All credentials could be verified!');
return
} catch (error) {
this.toast.error(`Something went wrong verifying the credentials!\n${error.response.data.error || error.response.data || error}`);
}
Expand Down

0 comments on commit 654db50

Please sign in to comment.