Use sweet alert to show error message on card reader. not correctly enter the card

This commit is contained in:
afiq.hamzah
2022-08-14 15:48:28 +08:00
parent a86b40c8bd
commit 6d98730f4a
+6 -1
View File
@@ -44,7 +44,12 @@ let handleMyKadReader = () => {
form_search_noic.submit();
}
})
.catch(error => console.log(error));
.catch(error => {
Swal.fire({
icon: 'error',
title: error,
});
});
};