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 { me } = useMe()
|
||||||
const { reloadLocalWallets } = useWallets()
|
const { reloadLocalWallets } = useWallets()
|
||||||
const { encrypt, isActive } = useVault()
|
const { encrypt, isActive } = useVault()
|
||||||
const logger = useWalletLogger(wallet?.def)
|
const logger = useWalletLogger(wallet)
|
||||||
const [upsertWallet] = useMutation(generateMutation(wallet?.def))
|
const [upsertWallet] = useMutation(generateMutation(wallet?.def))
|
||||||
const [removeWallet] = useMutation(REMOVE_WALLET)
|
const [removeWallet] = useMutation(REMOVE_WALLET)
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ export function useWalletConfigurator (wallet) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return { clientConfig, serverConfig }
|
return { clientConfig, serverConfig }
|
||||||
}, [wallet])
|
}, [wallet, logger])
|
||||||
|
|
||||||
const _detachFromServer = useCallback(async () => {
|
const _detachFromServer = useCallback(async () => {
|
||||||
await removeWallet({ variables: { id: wallet.config.id } })
|
await removeWallet({ variables: { id: wallet.config.id } })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user