mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-14 13:41:02 +00:00
fix: exclude core tokens from Other Assets using hardcoded IDs
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user