Skip to content

Commit

Permalink
fix(suite): fix t3b1 homescreen name
Browse files Browse the repository at this point in the history
  • Loading branch information
komret committed Sep 17, 2024
1 parent 373912d commit d34ecbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/suite/src/components/suite/HomescreenGallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export const HomescreenGallery = ({ onConfirm }: HomescreenGalleryProps) => {
if (isLocked()) return;

// original image is the default image already available in device, set it by empty string
const isOriginalImage = image === `original_${deviceModelInternal.toLowerCase()}`;
const isOriginalImage =
image ===
`original_${(deviceModelInternal === DeviceModelInternal.T2B1 ? DeviceModelInternal.T3B1 : deviceModelInternal).toLowerCase()}`;

const hex = isOriginalImage ? '' : await imagePathToHex(imagePath, deviceModelInternal);

Expand Down
2 changes: 1 addition & 1 deletion packages/suite/src/constants/suite/homescreens.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DeviceModelInternal } from '@trezor/connect';

const safe3Homescreens = [
'original_t2b1', // note - has to be first
'original_t3b1', // note - has to be first
'blank',
'circleweb',
'circuit',
Expand Down

0 comments on commit d34ecbd

Please sign in to comment.