Show NFC support message (#708)

This commit is contained in:
Justin Hernandez
2025-06-29 15:04:47 -07:00
committed by GitHub
parent 2c52855a12
commit 5c54bc5320

View File

@@ -113,6 +113,9 @@ const PassportNFCScanScreen: React.FC<PassportNFCScanScreenProps> = ({}) => {
setDialogMessage(
"Sorry, your device doesn't seem to have an NFC reader.",
);
// Set isNfcEnabled to false so the message is shown on the screen
// near the disabled button when NFC isn't supported
setIsNfcEnabled(false);
setIsNfcSupported(false);
}
}, []);