make logger use full wallet

This commit is contained in:
k00b 2024-11-27 19:10:00 -06:00
parent 6c3301a9c4
commit f89286ffdf

View File

@ -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 } })