diff --git a/components/item-act.js b/components/item-act.js index 0e049c13..3cc23a57 100644 --- a/components/item-act.js +++ b/components/item-act.js @@ -327,7 +327,7 @@ export function useZap () { // but right now this toast is noisy for optimistic zaps console.error(error) } - }, [act, toaster, strike, wallets.length]) + }, [act, toaster, strike, wallets]) } export class ActCanceledError extends Error { diff --git a/wallets/index.js b/wallets/index.js index a52c6ac2..c63ded59 100644 --- a/wallets/index.js +++ b/wallets/index.js @@ -196,17 +196,16 @@ export function WalletsProvider ({ children }) { // provides priority sorted wallets to children, a function to reload local wallets, // and a function to set priorities + const value = useMemo(() => ({ + wallets, + reloadLocalWallets, + setPriorities, + onVaultKeySet: syncLocalWallets, + beforeDisconnectVault: unsyncLocalWallets, + removeLocalWallets + }), [wallets, reloadLocalWallets, setPriorities, syncLocalWallets, unsyncLocalWallets, removeLocalWallets]) return ( - + {children}