Skip to content

Commit

Permalink
fix: recovery page for sk accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
siandreev committed Feb 7, 2025
1 parent b9b64a4 commit e5de2fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
SaleBadgeIcon,
SwitchIcon,
UnpinIconOutline
} from "../../components/Icon";
} from '../../components/Icon';
import { Body3, Label2 } from '../../components/Text';
import {
DesktopViewDivider,
Expand Down Expand Up @@ -143,7 +143,9 @@ export const DesktopWalletSettingsPage = () => {
</SettingsListBlock>
<DesktopViewDivider />
<SettingsListBlock>
{(account.type === 'mnemonic' || account.type === 'testnet') && (
{(account.type === 'mnemonic' ||
account.type === 'testnet' ||
account.type === 'sk') && (
<SettingsListItem onClick={() => recovery({ accountId: account.id })}>
<KeyIcon />
<Label2>{t('settings_backup_seed')}</Label2>
Expand Down
3 changes: 2 additions & 1 deletion packages/uikit/src/pages/settings/Recovery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const useSecret = (onBack: () => void, accountId: AccountId, walletId?: WalletId
}
setSecret(_secret);
} catch (e) {
console.error(e);
onBack();
}
})();
Expand Down Expand Up @@ -149,7 +150,7 @@ export const RecoveryContent: FC<{

useSetNotificationOnBack(isExportingTRC20 ? onHideTron : undefined);

if (!mnemonicToShow) {
if (!mnemonicToShow && secret?.type !== 'sk') {
return (
<Wrapper>
<SpinnerRingStyled />
Expand Down

0 comments on commit e5de2fc

Please sign in to comment.