Skip to content

Commit

Permalink
Merge pull request #219 from alephium/fix-export-privatekey
Browse files Browse the repository at this point in the history
Remove the `Export private key` button for the ledger account
  • Loading branch information
Lbqds authored Oct 11, 2024
2 parents 4985bf0 + 436b518 commit a02bc73
Showing 1 changed file with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,18 @@ export const AccountEditScreen: FC = () => {
>
{showDelete ? t("Delete account") : t("Hide account")}
</ButtonCell>
<ButtonCell
color={"error.500"}
onClick={() => navigate(routes.exportPrivateKey())}
icon={<AlertIcon />}
>
{t("Export private key")}
</ButtonCell>
<>
{account?.signer.type === 'ledger'
? <></>
: <ButtonCell
color={"error.500"}
onClick={() => navigate(routes.exportPrivateKey())}
icon={<AlertIcon />}
>
{t("Export private key")}
</ButtonCell>
}
</>
</CellStack>
</NavigationContainer>
</>
Expand Down

0 comments on commit a02bc73

Please sign in to comment.