From d30dace2669b9759fd2f8b8a8ae5d65fb632de83 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 22 Sep 2024 18:03:38 +0200 Subject: [PATCH] Fix missing dependency for useZap (#1420) This didn't cause any bugs because useWallet returns everything we need on first render. This caused a bug with E2EE device sync branch though since there the wallet is loaded async. This meant that during payment, the wallet config was undefined. --- components/item-act.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/item-act.js b/components/item-act.js index a58a160d..5312e8bd 100644 --- a/components/item-act.js +++ b/components/item-act.js @@ -277,7 +277,7 @@ export function useZap () { const reason = error?.message || error?.toString?.() toaster.danger(reason) } - }, [me?.id, strike]) + }, [act, me?.id, strike]) } export class ActCanceledError extends Error {