From 81f82e2ed911c9cd6d022c82d168876004e2d401 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Mon, 10 Jul 2023 17:23:06 +0200 Subject: [PATCH] Fix faulty assert --- context/ChainsContext/service.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/context/ChainsContext/service.tsx b/context/ChainsContext/service.tsx index 0a62760..62e1cc8 100644 --- a/context/ChainsContext/service.tsx +++ b/context/ChainsContext/service.tsx @@ -126,10 +126,7 @@ export const getChainFromRegistry = async (chainName: string, isTestnet?: boolea assets: registryAssets, }; - assert( - !isChainInfoFilled(chain), - `Chain ${chainName} loaded from the registry with missing data`, - ); + assert(isChainInfoFilled(chain), `Chain ${chainName} loaded from the registry with missing data`); return chain; };