From 6340830ba8178b2a46c2d7b1922306a8632e58bc Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Fri, 6 Feb 2026 11:38:13 +0300 Subject: [PATCH] fix: exclude core tokens from Other Assets using hardcoded IDs --- web/src/components/AccountBalance.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/web/src/components/AccountBalance.tsx b/web/src/components/AccountBalance.tsx index 25ec6994..8e22d553 100644 --- a/web/src/components/AccountBalance.tsx +++ b/web/src/components/AccountBalance.tsx @@ -237,13 +237,14 @@ export const AccountBalance: React.FC = () => { const tokens: TokenBalance[] = []; // IMPORTANT: Only show custom tokens added by user - // Wrapped tokens (wHEZ, wUSDT) are for backend operations only - // Core tokens (HEZ, PEZ) are shown in their own dedicated cards - const assetIdsToCheck = customTokenIds.filter((id) => - id !== ASSET_IDS.WHEZ && // Exclude wrapped tokens - id !== ASSET_IDS.WUSDT && - id !== ASSET_IDS.PEZ // Exclude core tokens - ); + // Core tokens are shown in their own dedicated cards - exclude them here + // Using hardcoded IDs to avoid env variable issues + const excludedAssetIds = [ + 1, // PEZ + 2, // wHEZ + 1000, // wUSDT (USDT) + ]; + const assetIdsToCheck = customTokenIds.filter((id) => !excludedAssetIds.includes(id)); for (const assetId of assetIdsToCheck) { try {