Skip to content

Commit

Permalink
non null assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler committed Aug 15, 2024
1 parent c9dab0c commit e61059c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/features/onboarding/import/AccountImportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ const AccountImportScreen = () => {

if (keypair) {
restoredAccount = Object.values(accounts).find(
(a) => a.solanaAddress === keypair.publicKey.toBase58(),
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
(a) => a.solanaAddress === keypair!.publicKey.toBase58(),
)
} else {
const keypairs = await Promise.all(
Expand Down

0 comments on commit e61059c

Please sign in to comment.