From 38d4a77ac26a6ec3dde67894363004ba4a1e143e Mon Sep 17 00:00:00 2001 From: kyranjamie Date: Wed, 9 Dec 2020 16:39:13 +0100 Subject: [PATCH] fix: small features --- app/modals/stacking/stacking-modal.tsx | 1 - app/preload.js | 2 +- app/store/keys/keys.actions.ts | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/modals/stacking/stacking-modal.tsx b/app/modals/stacking/stacking-modal.tsx index b55378ee1..9f2496ddb 100644 --- a/app/modals/stacking/stacking-modal.tsx +++ b/app/modals/stacking/stacking-modal.tsx @@ -225,7 +225,6 @@ export const StackingModal: FC = props => { if (walletType === 'ledger') { if (publicKey === null) { - // log.error('Tried to create Ledger transaction without persisted private key'); return; } diff --git a/app/preload.js b/app/preload.js index 4d3ed90f7..67044fa72 100644 --- a/app/preload.js +++ b/app/preload.js @@ -65,7 +65,7 @@ contextBridge.exposeInMainWorld('api', { const transport = await TransportNodeHid.open(descriptor); transport.on('disconnect', async () => { await transport.close(); - onDisconnect(); + setTimeout(() => onDisconnect(), 0); }); return { transport, diff --git a/app/store/keys/keys.actions.ts b/app/store/keys/keys.actions.ts index 46878dea4..0555e7459 100644 --- a/app/store/keys/keys.actions.ts +++ b/app/store/keys/keys.actions.ts @@ -1,7 +1,6 @@ import { useHistory } from 'react-router'; import { push } from 'connected-react-router'; import { createAction, Dispatch } from '@reduxjs/toolkit'; -// import log from 'electron-log'; import { generateMnemonicRootKeychain, deriveRootKeychainFromMnemonic } from '@stacks/keychain'; import { RootState } from '..';