Skip to content

Commit

Permalink
fix: show 'Check on device' prompt when device is locked and is reque…
Browse files Browse the repository at this point in the history
…sting PIN during auth-check in onboarding
  • Loading branch information
peter-sanderson committed Jan 7, 2025
1 parent 0093ee1 commit 588cd3d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export const DeviceAuthenticity = ({ goToNext }: DeviceAuthenticityProps) => {
if (!device) return null;

const isWaitingForConfirmation = device.buttonRequests.some(
request => request.code === 'ButtonRequest_Other',
request =>
request.code === 'ButtonRequest_Other' || // Device Authenticity prompt
request.code === 'ButtonRequest_PinEntry', // Device can be locked, and we can get Pin Request first
);
const isCheckFailed = isSubmitted && selectedDeviceAuthenticity?.valid === false;
const isCheckSuccessful = isSubmitted && selectedDeviceAuthenticity?.valid;
Expand Down

0 comments on commit 588cd3d

Please sign in to comment.