Skip to content

Commit

Permalink
fix(suite): show toast only on entropy check fail
Browse files Browse the repository at this point in the history
(cherry picked from commit d186751)
  • Loading branch information
komret authored and MiroslavProchazka committed Jan 14, 2025
1 parent 407f32c commit 19c9ef8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/suite/src/actions/settings/deviceSettingsActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@ export const resetDevice =
});

if (!result.success) {
dispatch(
notificationsActions.addToast({
type: 'error',
error: 'Something went wrong, try again.',
}),
);
if (result.payload.code === 'Failure_EntropyCheck') {
dispatch(
notificationsActions.addToast({
type: 'error',
error: 'Something went wrong, try again.',
}),
);
const model = device?.features?.internal_model;
const revision = device?.features?.revision;
const version = getFirmwareVersion(device);
Expand Down

0 comments on commit 19c9ef8

Please sign in to comment.