Skip to content

Commit

Permalink
Cryptolist network (#588)
Browse files Browse the repository at this point in the history
display crypto SATT with other
  • Loading branch information
waelhanfi04 authored Oct 3, 2023
1 parent 11b93dc commit a7b472b
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,14 +398,12 @@ export class DropdownCryptoNetworkComponent
});
this.filterList = this.campaignCryptoList;

const bandIndex = this.filterList.findIndex(
(item: { key: string; }) => item.key === 'SATT'
const keysToDisplay = ['ETH', 'USDT', 'BNB', 'USDC', 'XRP', 'SATT'];
this.resultfilterList = this.filterList.filter((item: { key: string; }) =>
keysToDisplay.includes(item.key)
);

this.resultfilterList = this.filterList.slice(
Math.max(0, bandIndex - 5),
Math.min(bandIndex + 1, this.filterList.length)
);


this.showSearchNewTokenContainer = false;
this.openModal(content);
Expand Down

0 comments on commit a7b472b

Please sign in to comment.