Skip to content

Commit

Permalink
fix(suite-native): do not navigate to the summary screen if device is…
Browse files Browse the repository at this point in the history
… disconnected
  • Loading branch information
yanascz committed Dec 10, 2024
1 parent ce3e5ae commit 1e8ee7a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export const DeviceAuthenticityCard = () => {
if (errorCode === 'Failure_ActionCancelled' || errorCode === 'Failure_PinCancelled') {
navigation.goBack();
reportCheckResult('cancelled');
} else if (errorCode === 'Method_Interrupted') {
// navigation.goBack() already called via the X button
} else if (errorCode === 'Method_Interrupted' || errorCode === undefined) {
// navigation.goBack() already called via the X button (or the device was disconnected)
reportCheckResult('cancelled');
} else {
navigation.navigate(DeviceAuthenticityStackRoutes.AuthenticitySummary, {
Expand Down

0 comments on commit 1e8ee7a

Please sign in to comment.