Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Update states.js
Browse files Browse the repository at this point in the history
Fixes testnet account lookup
  • Loading branch information
grctest committed Mar 8, 2024
1 parent ebcd7f6 commit 71afa45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/states.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 : [];
}
Expand Down Expand Up @@ -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
: [];
Expand Down

0 comments on commit 71afa45

Please sign in to comment.