diff --git a/public/app.js b/public/app.js index 318030a..2ebcd17 100644 --- a/public/app.js +++ b/public/app.js @@ -114,6 +114,12 @@ var app = new Vue({ fingerprint: this.fingerDetails[finger].fingerprint } }); + + if (fingerprints.length < 2) { + swal("Oops!", 'Please capture the two fingers for this profile.', "error"); + return; + } + var { data } = await axios.post( this.authenticateUrl(`/uc/fingerprints/${this.staff.reference}`), { fingerprints }