Skip to content

Commit

Permalink
fix(suite): replace selectorwhen setting sentry context
Browse files Browse the repository at this point in the history
- device is not yet selected at that point so its model cannot be determined from selector
  • Loading branch information
komret committed Feb 27, 2025
1 parent 529ea57 commit 89011d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/suite/src/middlewares/suite/sentryMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
blockchainActions,
deviceActions,
discoveryActions,
selectSelectedDevice,
} from '@suite-common/wallet-core';
import { DEVICE, TRANSPORT } from '@trezor/connect';
import {
Expand Down Expand Up @@ -112,7 +111,7 @@ const sentryMiddleware =
firmware: getFirmwareVersion(action.payload.device),
isBitcoinOnly: hasBitcoinOnlyFirmware(action.payload.device),
bootloader: getBootloaderVersion(action.payload.device),
model: selectSelectedDevice(state)?.features?.internal_model,
model: action.payload.device.features.internal_model,
});
break;
}
Expand Down

0 comments on commit 89011d7

Please sign in to comment.