NFC error handling

This commit is contained in:
minibits-cash
2026-06-12 21:52:55 +02:00
parent 3d1f303bda
commit 4a73b4c877
+1 -1
View File
@@ -465,7 +465,7 @@ export const NfcPayScreen = observer(function NfcPayScreen({ route }: Props) {
readerSessionActiveRef.current = true readerSessionActiveRef.current = true
if (!tag || !tag.ndefMessage) { if (!tag || !tag.ndefMessage) {
throw new AppError(Err.NFC_ERROR, 'NFC tag reading failed', { tag, message: 'No NDEF message found on the tag.' }) throw new AppError(Err.NFC_ERROR, 'NFC tag reading failed', { tag: JSON.stringify(tag), message: 'No NDEF message found on the tag.' })
} }
// Lock onto this tag and hand it to the payment flow. From here we keep the // Lock onto this tag and hand it to the payment flow. From here we keep the