Skip to content

Commit

Permalink
chore: do not save data when no indexer data is received
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeron committed Nov 14, 2024
1 parent eb96b87 commit 275e00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/src/systems/Asset/cache/AssetsCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 275e00f

Please sign in to comment.