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.
This commit is contained in:
ekzyis 2024-09-22 18:03:38 +02:00 committed by GitHub
parent 894d02a196
commit d30dace266
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 {