make logger use full wallet
This commit is contained in:
parent
6c3301a9c4
commit
f89286ffdf
|
@ -13,7 +13,7 @@ export function useWalletConfigurator (wallet) {
|
|||
const { me } = useMe()
|
||||
const { reloadLocalWallets } = useWallets()
|
||||
const { encrypt, isActive } = useVault()
|
||||
const logger = useWalletLogger(wallet?.def)
|
||||
const logger = useWalletLogger(wallet)
|
||||
const [upsertWallet] = useMutation(generateMutation(wallet?.def))
|
||||
const [removeWallet] = useMutation(REMOVE_WALLET)
|
||||
|
||||
|
@ -59,7 +59,7 @@ export function useWalletConfigurator (wallet) {
|
|||
}
|
||||
|
||||
return { clientConfig, serverConfig }
|
||||
}, [wallet])
|
||||
}, [wallet, logger])
|
||||
|
||||
const _detachFromServer = useCallback(async () => {
|
||||
await removeWallet({ variables: { id: wallet.config.id } })
|
||||
|
|
Loading…
Reference in New Issue