teamraincoat / agricat

Enrollment application for agricultural insurance policies
0 stars 0 forks source link

QR code error handling #53

Closed j0x0j closed 2 years ago

j0x0j commented 2 years ago

We need to show an error alert if the QR code that is scanned is not part of our platform.

For example, if a person scans a QR code with some other data outside our platform, the enrollment form shows up even though it is empty. The desired behavior is to throw an error when we know that the user scanned a QR code we don't care about. We should never show the enrollment form if the QR code is not valid or not record is matched locally.