fix: exclude core tokens from Other Assets using hardcoded IDs

This commit is contained in:
2026-02-06 11:38:13 +03:00
parent 1aed7dedf8
commit 6340830ba8
+8 -7
View File
@@ -237,13 +237,14 @@ export const AccountBalance: React.FC = () => {
const tokens: TokenBalance[] = []; const tokens: TokenBalance[] = [];
// IMPORTANT: Only show custom tokens added by user // IMPORTANT: Only show custom tokens added by user
// Wrapped tokens (wHEZ, wUSDT) are for backend operations only // Core tokens are shown in their own dedicated cards - exclude them here
// Core tokens (HEZ, PEZ) are shown in their own dedicated cards // Using hardcoded IDs to avoid env variable issues
const assetIdsToCheck = customTokenIds.filter((id) => const excludedAssetIds = [
id !== ASSET_IDS.WHEZ && // Exclude wrapped tokens 1, // PEZ
id !== ASSET_IDS.WUSDT && 2, // wHEZ
id !== ASSET_IDS.PEZ // Exclude core tokens 1000, // wUSDT (USDT)
); ];
const assetIdsToCheck = customTokenIds.filter((id) => !excludedAssetIds.includes(id));
for (const assetId of assetIdsToCheck) { for (const assetId of assetIdsToCheck) {
try { try {