From ff66e51aab762a7c9a004e90a5d440f0afa17717 Mon Sep 17 00:00:00 2001 From: serg-plusplus Date: Fri, 11 Oct 2024 15:39:22 +0100 Subject: [PATCH] Fix sync --- src/core/back/services/walletServer.ts | 2 +- src/core/back/sync/tokens/networks.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/back/services/walletServer.ts b/src/core/back/services/walletServer.ts index 3907c8b7f..fa59b9600 100644 --- a/src/core/back/services/walletServer.ts +++ b/src/core/back/services/walletServer.ts @@ -98,7 +98,7 @@ const withQueue = createQueue(); async function handleWalletRequest( ctx: MessageContext, ) { - console.debug("New wallet request", ctx); + // console.debug("New wallet request", ctx); try { await ensureInited(); diff --git a/src/core/back/sync/tokens/networks.ts b/src/core/back/sync/tokens/networks.ts index e24d5a3b0..e992b302d 100644 --- a/src/core/back/sync/tokens/networks.ts +++ b/src/core/back/sync/tokens/networks.ts @@ -111,7 +111,7 @@ export const syncNetworks = memoize( }; if (existing) { - if (!balance) { + if (balance === null) { return { ...existing, priceUSD,