Skip to content

Commit 0a6c7be

Browse files
committed
chore: fix type errors
1 parent 387a74b commit 0a6c7be

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

app/hooks/use-prepare-ledger.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@ import { LedgerError } from '@zondax/ledger-blockstack';
33
import compareVersions from 'compare-versions';
44
import { Observable } from 'rxjs';
55
import { filter } from 'rxjs/operators';
6-
import {
7-
EARLIEST_SUPPORTED_LEDGER_VERSION,
8-
LATEST_LEDGER_VERSION_MAJOR,
9-
LATEST_LEDGER_VERSION_MINOR,
10-
} from '@constants/index';
116

7+
import { EARLIEST_SUPPORTED_LEDGER_VERSION } from '@constants/index';
8+
import { isTestnet } from '@utils/network-utils';
129
import type { LedgerMessageEvents } from '../main/register-ledger-listeners';
1310
import { useListenLedgerEffect } from './use-listen-ledger-effect';
14-
import { isTestnet } from '@utils/network-utils';
1511
import { messages$ } from './use-message-events';
1612
import { useCheckForUpdates } from './use-check-for-updates';
1713

app/store/stacking/stacking.actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const fetchStackerInfo = createAsyncThunk(
4242
network.coreApiUrl = node.url;
4343
const stackingClient = new StackingClient(address, network as any);
4444
const [error, resp] = await safeAwait(stackingClient.getStatus());
45-
if (resp) return resp;
45+
if (resp) return resp as any;
4646
if (error) return { error };
4747
throw new Error();
4848
}

app/tests/restore-wallet.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { getTestConfigPath } from './get-test-config-path';
1010
import { createGlobalFeature, resetWallet } from './features/global.feature';
1111
import { HomeFeature } from './features/home.feature';
1212
import { initSoftwareWallet } from './features/onboarding.feature';
13-
import path from 'path';
1413

1514
const PASSWORD = 'hello9*&^*^*dkfskjdfskljdfsj';
1615
const SEED_PHRASE =
@@ -30,7 +29,7 @@ describe('Restore wallet flow', () => {
3029

3130
afterEach(async () => await app.close());
3231

33-
test('Restore wallet', async done => {
32+
test('Restore wallet', async () => {
3433
await initSoftwareWallet(page)(SEED_PHRASE, PASSWORD);
3534

3635
const globalFeature = createGlobalFeature(page);
@@ -69,7 +68,5 @@ describe('Restore wallet flow', () => {
6968
await resetWallet(page);
7069
await delay(1000);
7170
await page.screenshot({ path: 'screenshots/finished-page.png' });
72-
73-
done();
7471
}, 120_0000);
7572
});

app/utils/blast-undo-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export function blastUndoStackToRemovePasswordFromMemory(element: HTMLInputEleme
88
for (let i = 0; i < 256; i++) document.execCommand('undo');
99
const newFakeValue = '0'.repeat(pwLength);
1010
element.value = newFakeValue;
11-
global.gc();
11+
global.gc?.();
1212
}

0 commit comments

Comments
 (0)