fix(cardassignment): handle card not found
This commit is contained in:
parent
3cedbebe40
commit
6c986467d3
@ -433,7 +433,7 @@
|
||||
state = "assigning";
|
||||
RunnerCardService.runnerCardControllerGetAll()
|
||||
.then((cards) => {
|
||||
console.log(cards);
|
||||
// console.log(cards);
|
||||
const card = cards.find((c) => c.code === cardCode);
|
||||
if (card) {
|
||||
console.log("card found", card);
|
||||
@ -450,7 +450,10 @@
|
||||
scannerActive = false;
|
||||
});
|
||||
} else {
|
||||
scannerActive = true;
|
||||
console.log("card not found");
|
||||
// scannerActive = true;
|
||||
state = "error_card";
|
||||
scannerActive = false;
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user