Fix wallet logger rerender (#2306)

This commit is contained in:
ekzyis 2025-07-22 19:38:06 +02:00 committed by GitHub
parent efefdeb0f0
commit 8344866fca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,7 @@ export function useWalletLoggerFactory () {
export function useWalletLogger (protocol) { export function useWalletLogger (protocol) {
const loggerFactory = useWalletLoggerFactory() const loggerFactory = useWalletLoggerFactory()
return loggerFactory(protocol) return useMemo(() => loggerFactory(protocol), [loggerFactory, protocol])
} }
export function useWalletLogs (protocol) { export function useWalletLogs (protocol) {