error on too small signature

This commit is contained in:
Pete Matsyburka
2024-03-10 19:55:45 +02:00
parent e56dcb59c0
commit f02315726d
3 changed files with 16 additions and 6 deletions
+5 -1
View File
@@ -1000,7 +1000,11 @@ export default {
this.isSubmitting = false
})
}).catch(error => {
console.log(error)
if (error?.message === 'Image too small') {
alert('Signature is too small - please redraw.')
} else {
console.log(error)
}
}).finally(() => {
this.isSubmitting = false
})