From 71afa45873cc29c7fd35c3c157a4a3c6bf9ee939 Mon Sep 17 00:00:00 2001 From: CM Date: Fri, 8 Mar 2024 00:16:31 +0000 Subject: [PATCH] Update states.js Fixes testnet account lookup --- src/lib/states.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/states.js b/src/lib/states.js index ddec75e..d4d01a3 100644 --- a/src/lib/states.js +++ b/src/lib/states.js @@ -426,7 +426,7 @@ const tempStore = create( if (environment === 'bitshares') { cachedAssets = assetBitshares && assetBitshares.length ? assetBitshares : []; nonNFTs = nonNFTBitshares && nonNFTBitshares.length ? nonNFTBitshares : []; - } else if (environment === 'bitshares_testnet' && bitshares_testnet && bitshares_testnet.length) { + } else if (environment === 'bitshares_testnet' && assetBitsharesTestnet || nonNFTBitsharesTestnet) { cachedAssets = assetBitsharesTestnet && assetBitsharesTestnet.length ? assetBitsharesTestnet : []; nonNFTs = nonNFTBitsharesTestnet && nonNFTBitsharesTestnet.length ? nonNFTBitsharesTestnet : []; } @@ -485,7 +485,7 @@ const tempStore = create( nonNFTs = nonNFTBitshares && nonNFTBitshares.length ? nonNFTBitshares : []; - } else if (environment === 'bitshares_testnet' && bitshares_testnet && bitshares_testnet.length) { + } else if (environment === 'bitshares_testnet' && assetBitsharesTestnet || nonNFTBitsharesTestnet) { cachedAssets = assetBitsharesTestnet && assetBitsharesTestnet.length ? assetBitsharesTestnet : [];