From 275e00fc5525cc54bcc4579b68e025b4f799204f Mon Sep 17 00:00:00 2001 From: Arthur Geron <3487334+arthurgeron@users.noreply.github.com> Date: Fri, 15 Nov 2024 01:17:57 +0700 Subject: [PATCH] chore: do not save data when no indexer data is received --- packages/app/src/systems/Asset/cache/AssetsCache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/src/systems/Asset/cache/AssetsCache.ts b/packages/app/src/systems/Asset/cache/AssetsCache.ts index b8810b2a9..73c6b5990 100644 --- a/packages/app/src/systems/Asset/cache/AssetsCache.ts +++ b/packages/app/src/systems/Asset/cache/AssetsCache.ts @@ -158,7 +158,7 @@ export class AssetsCache { asset.name = ''; } - if (save) { + if (save && assetFromIndexer) { this.cache[chainId][assetId] = asset; this.storage.setItem(`${chainId}/${assetId}`, asset); }