make logger use full wallet

This commit is contained in:
k00b 2024-11-27 19:10:00 -06:00
parent 6c3301a9c4
commit f89286ffdf
1 changed files with 2 additions and 2 deletions

View File

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