Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
amitojsingh366 committed Mar 6, 2022
1 parent 1b6cd45 commit 2e190a8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/context/WalletProvider/WalletProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,10 @@ export const WalletProvider = ({ children }: { children: React.ReactNode }): JSX
//HDwallet API
//TODO moveme into own file
ipcRenderer.on('@hdwallet/getPublicKeys', async (event, data) => {
let payload = data.paths
if(state.wallet){
if (state.wallet) {
// @ts-ignore
let pubkeys = await state.wallet.getPublicKeys(paths.payload)
console.log("pubkeys: ",pubkeys)
console.info('pubkeys: ', pubkeys)
ipcRenderer.send('@hdwallet/response/getPublicKeys', pubkeys)
}
})
Expand Down Expand Up @@ -529,7 +528,7 @@ export const WalletProvider = ({ children }: { children: React.ReactNode }): JSX
const localWalletType = getLocalWalletType()
const localWalletDeviceId = getLocalWalletDeviceId()
if (localWalletType && localWalletDeviceId && state.adapters) {
; (async () => {
;(async () => {
if (state.adapters?.has(localWalletType)) {
switch (localWalletType) {
case KeyManager.Native:
Expand Down

0 comments on commit 2e190a8

Please sign in to comment.