Skip to content

Commit

Permalink
fix(suite): fix missing disable for Create Multi-share Backup (#13348)
Browse files Browse the repository at this point in the history
(cherry picked from commit 480e81b)
  • Loading branch information
peter-sanderson authored and MiroslavProchazka committed Jul 15, 2024
1 parent 2b88e9a commit 3282fe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const doesSupportMultiShare = (device: TrezorDevice | undefined): boolean => {
);
};

export const MultiShareBackup = () => {
export const MultiShareBackup = ({ isDeviceLocked }: { isDeviceLocked: boolean }) => {
const device = useSelector(selectDevice);
const dispatch = useDispatch();

Expand Down Expand Up @@ -63,6 +63,7 @@ export const MultiShareBackup = () => {
variant="secondary"
data-test="@settings/device/create-multi-share-backup-button"
onClick={handleClick}
isDisabled={isDeviceLocked}
>
<Translation id="TR_CREATE_MULTI_SHARE_BACKUP" />
</ActionButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const SettingsDevice = () => {
) : (
<>
<BackupRecoverySeed isDeviceLocked={isDeviceLocked} />
<MultiShareBackup />
<MultiShareBackup isDeviceLocked={isDeviceLocked} />
<CheckRecoverySeed isDeviceLocked={isDeviceLocked} />
</>
)}
Expand Down

0 comments on commit 3282fe8

Please sign in to comment.