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:
		
							parent
							
								
									894d02a196
								
							
						
					
					
						commit
						d30dace266
					
				@ -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 {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user