diff --git a/src/components/matches/Scanner/ScannerModal.tsx b/src/components/matches/Scanner/ScannerModal.tsx index 862ef62..424c0e2 100644 --- a/src/components/matches/Scanner/ScannerModal.tsx +++ b/src/components/matches/Scanner/ScannerModal.tsx @@ -91,7 +91,12 @@ const ScannerModal = ({ severity: feedback ? "info" : "success", visible: true, }); - handleItemTransferred?.(); + try { + handleItemTransferred?.(); + } catch (error: unknown) { + // Do not expose potentially rough API errors to user + console.error("Got error when handling item transferred", error); + } } catch (error) { setFeedback({ text: String(error),